Demo entry 6783349

test

   

Submitted by anonymous on Feb 10, 2019 at 04:28
Language: Python. Code size: 290 Bytes.

name = input("Please enter your name: ")
age = int(input("How old are you, {0}? ".format(name)))

# if 18 <= age < 31:
if age >=18 and age <31:
    print("Welcome to club 18-30 holidays, {0}".format(name))
else:
    print("I'm sorry, our holidays are only for seriously cool people")

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).