0
Why does this code has error?
Can you please check what is wrong here and why not all arguments can be converted? If number is introduced manually (not through input), the code works. https://code.sololearn.com/cJzJU2ssbx69/?ref=app Thanks in advance :)
2 Respuestas
+ 8
You need to convert input to integer, because input returnes all what was entered as string format by default.
You can use something like:
num = int(input())
+ 1
Thank you so much