People = 20 Cats = 30 Dogs = 15 # line 1,2 and 3 assigning values to variables If people < cats: #1st condition print(“too many cats”) If people > cats: #2nd condition print(“not many cats.”) # 3rd condition If people > dogs: print(“ the world is dry.”)
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter