+ 1

I don't know why this code won't work

I want it so if they choose a letter, then it will perform a task. The error that is coming up is: Traceback (most recent call last): File "./Playground/file0.py", line 1, in <module> number=int(input) TypeError: int() argument must be a string, a bytes-like object or a number, not 'builtin_function_or_method' I don't really get what this means, here is my code https://www.sololearn.com/en/compiler-playground/cntCm2GcKQHR

24th Feb 2024, 4:42 PM
Liam Ni(INACTIVE)
Liam Ni(INACTIVE) - avatar
2 Respuestas
+ 3
If that is the code as seen, you did not pass the input() instruction into the int() instruction correctly. its should be: number = int(input()) also, ensure you seperate your input on seperate lines, 5 a then click submit
24th Feb 2024, 5:03 PM
Marcus Nieman Johnson
Marcus Nieman Johnson - avatar
0
Thanks, i just missed that out i think XD
24th Feb 2024, 5:08 PM
Liam Ni(INACTIVE)
Liam Ni(INACTIVE) - avatar