¿Por qué esto no funciona? // Why this is not working? (Python) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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