06 Lecture Control Flow Statements Conditional Statements (If, If-Else, Elif) - 2
06 Lecture Control Flow Statements Conditional Statements (If, If-Else, Elif) - 2
Lecture 6:
Flow Control Statements in Python
Conditional Statements (if, if-else, elif)
If condition:
statement1
Elif condition2:
statement2
Practice Program:
WAP which test the following conditions:
• If the number is positive(>0), we print an appropriate message
• if number is 0, prints number is 0
• if number is less than 0, prints the message (no is less )
• else prints wrong input