I did this, but I keep getting errors
def get_generation(x):
return str ((x//10)*10) + 'large'
age = int(input(x))
print(get_generation(age) + "I see")
If I type 28
, I want to get 20s
like this..
What should I do?
def get_generation(x):
return str ((x//10)*10) + 'large'
age = int(input('Enter your age:'))
print(get_generation(age) + "I see")
© 2024 OneMinuteCode. All rights reserved.