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
2 ответов
+ 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.
+ 2
Thanks bro, you r great <3