0

Hola, NECESITO AYUDA, no entiendo esto

https://sololearn.com/compiler-playground/cP0srM1zk68m/?ref=app PORQUE DA ERROR ESTE CÓDIGO, soy nuevo, disculpas de antemano

15th Dec 2024, 4:25 PM
Cesar Peña
Cesar Peña - avatar
2 odpowiedzi
+ 3
Cesar Peña , to execute a code block when a condition is True, indent it using 4 spaces (it could be any other number of spaces, but 4 is the recommended value from the python style guide). apply the same indentation for both `if` and `else` blocks. after applying this, the code should run properly. to make the code more flexible, the variable `edad` should not be `hard coded`. better to use the input function to get the value from the user. keep in mind, that the input is always a string, that has to be converted to integer so that it can be used for the comparison operation.
15th Dec 2024, 4:52 PM
Lothar
Lothar - avatar
+ 2
Thanks bro, you r great <3
15th Dec 2024, 5:10 PM
Cesar Peña
Cesar Peña - avatar