Python Statements
Indentation: Indentation is very import while using python statements. It is important to keep a good understanding of how indentation works in Python to keep you code structure and in proper order to execute the code. Example : Simple print statement with if condition: if True: print('This is a True statement') This is a True statement Try printing with Logic: if, else Statements Syntax: if case: perform action1 else: perform action2 Example: name='Feroz' if name == 'Feroz': print('Hello Feroz!') else: print('Welcome to the Group!') Hello Feroz! if, elif, else Statements Syntax: if case1: perform action1 if case2: perform action2 else: perform action3 Example: sports='cricket' if sports == 'cricket': print('Welcome to Cricket Club!') elif sports == 'Foot Ball': print('Sorry! it is currently not available') else: print('This game not present in ...