11th Sep 2018, 4:29 PM
Ringwil
Ringwil - avatar
2 Respuestas
+ 1
Your 'print(i)' is outside of the function. In the main level of your code, 'i' is not known. So you either have to print your 'i' while still in the function or you have to use 'return'.
11th Sep 2018, 4:34 PM
HonFu
HonFu - avatar
+ 1
my problem has been solved, it's about indentation, thanks for HonFu
11th Sep 2018, 4:47 PM
Ringwil
Ringwil - avatar