So i decided to make a small string of code that converts your age into lion years (Basically multiplicating your age by 5). The problem i have is i cant get it to take the age as an integer and input, that or i cant make it print the "lionage" integer below.
Code and error sign below:
name = input ("please type your name in: ")
age = int(input ("please type your age in: "))
age = int(age)
five = int(str(5))
lionage = int(age*five)
print ("Hello " + name + "! Your age is " + age + " but in lion years it's " + str(lionage) + " years")
Error: can't convert 'int' object to str implicitly
I may be wrong on what I got wrong in the code.
(By the way, please prioritize giving me an answer of why its going wrong and how I can fix it simplifying the code to make it smaller. (i want to learn that myself, thanks :) )