Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ##J.Warr 07/10/2020 Python Data Types Demo
- ##string
- print("hello what is your name? ")
- name = input()
- ##float
- print("hello "+name+" what is your age in years and months? ")
- age = float(input())
- ##integer
- print("In what year were you born? ")
- year=int(input())
- print("You are "+str(age)+" years old and born in "+str(year))
Advertisement
Add Comment
Please, Sign In to add comment