This is my code :
name = input("What's your name? ")
print("Nice to meet you " + name + "!")
age = input("Your age? ")
print("So, you are already " + age + " years old, " + name + "!")
if age > 50:
print ("you are to old thx ")
else:
print ("nice age using your apportunity ")
This is my result with error :
What's your name? daffa
Nice to meet you daffa!
Your age? 12
So, you are already 12 years old, daffa!
Traceback (most recent call last):
File "C:\Users\murtadho\AppData\Local\Programs\Python\Python37\x.py", line
6, in <module>
if age > 50:
TypeError: '>' not supported between instances of 'str' and 'int'
what happened in here?