Python Baby Steps 107

Mihir Dhakan
Jun 6, 2021

Operators plays vital role while performing any logical or other comparison + calculations, assignments, etc. between or across variables. These operators are of few categories, such as Arithmetic, Logical, Relational and much more.

Figure 1: Comparison Operators in Python

Statements which consists If, else, are converted to programmable python statement using Condition statements. Also, you will learn about Branching in python. Try to co-relate the concepts with real-life events, it would be much easier to grasp.

Figure 2: If else illustrative image

If (‘like’==True ):

print(‘ Click claps’)

else:

print(‘Give feedback on comments ! ’)

--

--