Home / Python / Programming and Reporting

Programming and Reporting

104.1.4 Conditional operators in Python

 In this post we will go through some commonly used conditional operations. if-then-else statement for loop break in for loop If-Then-Else statement If Condition In [100]: age=60 if age<50: print("Group1") print("Done with If") Done with If If-else statement In [101]: age=60 if age<50: print("Group1") else: print("Group2") print("Done with If else") Group2 Done …

Read More »