Nov-10-2019, 03:42 AM
You need to reset counter to 0 after the inner loop is done executing. Otherwise it retains the final value of 10, and the inner loop never executes.
Also, you don't need to declare variable types in Python, so you don't need lines like
Also, you don't need to declare variable types in Python, so you don't need lines like
num = int()
. It is sufficient to use num = 0
.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures