Quick actions

cmd+k|ctrl+k

Navigation

Languages

3. if block

Snippet info

Language

Python

Visibility

public

Author

aaron.lung.wai

Created

2022-11-23T14:07:43.132549Z

Updated

2024-04-06T03:30:42.234622Z

x = 10
y = 4
if x > 5:
    print("x is bigger than 5")

if y < 5:
    print("y is less than 5")

if x == 5:
    print("x equals to 5")

x = [1, 4, 7, 10]
if len(x) > 2:
    print("x is a large list")
   
INFO