0
Why do I get error message when I used int(input())
4 Respuestas
+ 4
Mint Lord ,
it would be helpful to get the error message from you. most of the time, the description points to the corresponding error.
+ 2
can you show the code?
+ 2
If the code is this one:
https://code.sololearn.com/c1Aiy4Hiipj2/?ref=app
It works, you just need to out the numbers on separate lines; e.g. NOT 3, 1, 180, 45, 6
BUT
3
1
180
45
6
And it'll output the value.
If you don't want the value to increase, put the print line outside of the loops by removing the indentation.
+ 1
Mint Lord Mostly it's when the input cannot be converted into an integer🤷♂️
For example if the input is a string
[A string containing letters cannot be converted into an integer]