Feb-04-2017, 11:30 AM
Very good. Note that you can also make the loop over range(int(sqs)) into a function, with sqs as a parameter. You could then do the initialization of prev, fibno, and john in that function.
It's also good to use more descriptive variable names. squares for sqs, size for sz, square and side for the two i's. It makes your code clearer and easier to read.
It's also good to use more descriptive variable names. squares for sqs, size for sz, square and side for the two i's. It makes your code clearer and easier to read.
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