Python in operator

Introduction In this post we will see how to use the in and not in operator in Python. These two statements are used when you want to check whether or not an element is found in a list, tuple or in a string. More generally they are used to verify the presence of an element …

Python in operator Read More »

Python – if else statement

Introduction Do you need to execute a code only under specific conditions?Python if else statements are what you are looking for! This post is about simple if, if else, and if elif else.These are fundamental constructs in Python and in all other programming languages so it is important to understand them well. Logical conditions Before …

Python – if else statement Read More »