0

Why do I get error message when I used int(input())

29th Dec 2022, 5:04 PM
Mintlord
Mintlord - avatar
4 Respostas
+ 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.
30th Dec 2022, 12:01 PM
Lothar
Lothar - avatar
+ 2
can you show the code?
29th Dec 2022, 5:34 PM
Giannis
Giannis - avatar
+ 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.
29th Dec 2022, 7:16 PM
Ausgrindtube
Ausgrindtube - avatar
+ 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]
29th Dec 2022, 9:35 PM
Shilling Ndivho
Shilling Ndivho - avatar