+ 2

Why it is showing eror

How can I have input as a integer https://code.sololearn.com/cwfZ5o6ew408/?ref=app

5th Dec 2021, 4:35 PM
Sameeksha Yadav
Sameeksha Yadav - avatar
2 Answers
+ 3
It works, but your input should really be a number.
5th Dec 2021, 4:38 PM
Paul
Paul - avatar
+ 2
Sameeksha Yadav n=int(input("enter a no. ")) print(n)
5th Dec 2021, 6:02 PM
BroFar
BroFar - avatar