Quick actions

cmd+k|ctrl+k

Navigation

Languages

10/09/2025 statement-04

Snippet info

Language

Python

Visibility

public

Author

kwahmail

Created

2025-09-10T13:08:04.496062Z

Updated

2025-09-10T14:00:27.710355Z

x=1
if x >10: # conditional expression Truthy or Falsy
    print ('x is larger than 10')
    x=20
    y=10
    z=50
    print(x,y,z)
elif x >5:
    print ('x is less than 5')
elif x >0:
    if x ==1:
        print ('x is less than 0')
        if x >0:
            x=20
            y=10
            z=50
            print(x,y,z)   
else:
    print("x is less than 0")
print("end of if block", x)
INFO