year = input("What year is it? ")
brith_year = input("What year were you born? ")
Variable And Conversion
age = int(year) - int(birth_year)
Function
print("Your are " + age)
or print(“Your are”, age)
That is my code but i can get the user input from both but after both user inputs i get an error when trying to convert and print. Can anyone tell me why, i feel like its simple. This was from my android phone so i was using py3 app. I usually program in c++ and wouldnt have a problem but learning python. Python is simpler and less lines of coding but input and output is different in c++ and i would not have a problem if it were c++.
Ahh ok, I see what your saying, thank you. Going from c++ to python is different. I am beginning to like python though it is simpler and way less lines of coding. Thank you for replying and helping me with that.