I am new to the forums and to Python programming and would like some assistance. The code was working fine for the inputs but then it gave me this error: “ValueError: invalid literal for int() with base 10” What could this really mean? What is wrong with my code?
userinputname = str(input(“What is your name?:”))
userinputage = int(input(“What is your age?:”))
print(“Hello,”, userinputname)
print(“Your age is,”, userinputage)
New contributor
Matthew Fulp is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.