MUstar

IoT Python3 0814 - input

Aug 15th, 2017
65
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. name = input("Your Name? ")
  2. age = int(input("Your Age? "))
  3.  
  4. while 1==1:
  5.     sex = input("male/female? ")
  6.     if sex=="male" or sex=="female":
  7.         break
  8.     else:
  9.         print("Oops! incorret Input.\n Re-input Plz.\n--")
  10. print("--\nHi! I'm", name,". I'm an", age,"year old")
  11. print("I was born in ", 2017+1-age,"and is a", sex)
RAW Paste Data