Week 2 Sample for Silver

posted Oct 14, 2016, 8:01 AM by Attila Lengyel
print("How are you doing?")
firstname = input("Give me your name:")
print("Hello", firstname, "! It is nice to meet you!")
lastname = input("Can you give me your last name?")
print(firstname, lastname)

year = int(input("Which year were you born?"))
print(year)

age = 2016 - year
print("You are", age, "years young!")

if age < 19:
print("Stop this chat!!!!!!!")
else:
print("Oh... you like on-line chat... but still watch out!!! :-) ")



Comments