a guest Dec 6th, 2018 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- def main():
- name1 = input("First name: ")
- name2 = name1 + " " + input("Last name: ")
- years = eval(input("How old are you? "))
- print("My age is",years,"and I am",age(years))
- def age(num):
- if(num < 17):
- x = "younger than the average college student"
- elif( num >= 17 and num < 26):
- x = "college aged"
- x = "ready for retirement"
- y = x
- return y
- print("I see these variables: ", name1, name2, years, x, y)
RAW Paste Data