JAWarr

Data Types

Oct 7th, 2020
280
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.33 KB | None | 0 0
  1. ##J.Warr 07/10/2020 Python Data Types Demo
  2.  
  3. ##string
  4. print("hello what is your name? ")
  5. name = input()
  6. ##float
  7. print("hello "+name+" what is your age in years and months? ")
  8. age = float(input())
  9. ##integer
  10. print("In what year were you born? ")
  11. year=int(input())
  12. print("You are "+str(age)+" years old and born in "+str(year))
Advertisement
Add Comment
Please, Sign In to add comment