New course! Every coder should learn Generative AI!
Try a free lesson0
print("Enter your number") inpnum=input() print("you have entered", int (inpnum)+10)
This is a very basic code but it's not working. Is this code wrong?
3 Answers
+ 1
text = int(input("Enter a number: "))
print(f"You entered {text + 10}")
0
It works for me
0
Your code is working for me, if the input is a number.