Python #1: Get To Know Me

In our first class we used Pycharm it is pretty hard for your first try same for me my brain hurt a lot at the first time, but when you try it the third time you will not think that is hard it is pretty cool and fun for me!! See what the code do!!!!!!!!

print(‘Hello!’)
name = input(‘What is your name?’)
name = str(name)
print(‘your name is’ , name

age = input(‘How old are you’)
age = int(age)
print(‘your age is’,age,’.’)

today = input(‘What year is it?’)
today = int(today)
born = today -age
print(‘You were born in the year’, born,’.’)

future = input(‘what year were you born’)
future = input(‘2050-2010’)
future = int(2050- born)
print(‘in the year 2050′, age,’.’), ‘.’ )

Leave a comment

Design a site like this with WordPress.com
Get started