0
Why
This error happens in this code I made. Scroll down in the output. https://code.sololearn.com/co2cAw1GfmMb/?ref=app
3 Antworten
+ 3
Remove line 23 add it in last while loop.
edit: 23, not 14
AJ 🇺🇦#PeaceForUkraine🇺🇦
the i is declared out side function but you are using inside function
+ 1
AJ 🇺🇦#PeaceForUkraine🇺🇦
On line no 23 i is a local variable for the function so remove that line from there and add in while loop where i < 16
while i < 16:
puepfuue(0)
puepfuue(1)
puepfuue(2)
puepfuue(1)
i += 1
0
You Made the variable nos in puepfuue but used i instead that isn't defined in the Methode.