yk non viene mai azzerato
Il 15/02/22 14:04, Gabriele Battaglia ha scritto:
Questo semplice script con 2 while annidati:
#testwhile
yi,yk=0,0
whileyi<2:
whileyk<5:
print(yi,yk)
yk+=1
yi+=1
output:
e:\Dropbox\py>testwhile 0 0 0 1 0 2 0 3 0 4 e:\Dropbox\py>
Ma sogno o son desktop?
Perchè la yi non diventa 1 e fa ripetere una seconda volta, il ciclo
più interno?
Gabry.
--
--... ...-- -.. . .. --.. ....- .- .--. ..- - ..- . .
Sent from TB on Windows 10, Genus Bononiae's computer.
_______________________________________________
Python mailing list
Python@lists.python.it
https://lists.python.it/mailman/listinfo/python
_______________________________________________
Python mailing list
Python@lists.python.it
https://lists.python.it/mailman/listinfo/python