+ 7

¿Por qué esto no funciona? // Why this is not working? (Python)

Tengo un cĂłdigo cualquiera y tengo este error (num es un input(), una entrada del usuario donde el usuario escribe nĂșmeros): I have any code and I have this error (num is an input (), a user input where the user types numbers): Traceback (most recent call last): File "..\Playground\", line 3, in <module> num2=int(str(list(str(num)).reverse))**2 ValueError: invalid literal for int() with base 10: '<built-in method reverse of list object at 0x00C55210>' ÂżQuĂ© estĂĄ mal? What is wrong?

23rd Mar 2018, 9:52 PM
TomĂĄs Badenes
TomĂĄs Badenes - avatar
1 Answer
+ 3
Ok, thanks 👍👍
23rd Mar 2018, 10:47 PM
TomĂĄs Badenes
TomĂĄs Badenes - avatar