age = int(input("Enter your age: ")) if age < 13: print("You are a child.") elif 13 <= age < 20: print("You are a teenager.") elif 20 <= age < 60: print("You are an adult.") else: print("You are a senior.")
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