Nov-07-2022, 05:11 PM
(Nov-07-2022, 05:02 PM)deanhystad Wrote: This being homework, there are rules we both have to follow.How to change 10 or 20 to 0? Can you give me some hints to print the colons next to every number?
https://python-forum.io/misc.php?action=help&hid=52
Before I can answer your question you need to show what you've tried.
As an aside, I don't see where it says you need to use a for loop for printing the 8:8:8 part.
And I have a question for you. Why isn't the 14 pattern square? It as 14 rows but only 12 columns. I'd expect 14 to look like this:
Output:0:0:0:0:0:0:0: 1:1:1:1:1:1:1: 2:2:2:2:2:2:2: 3:3:3:3:3:3:3: 4:4:4:4:4:4:4: 5:5:5:5:5:5:5: 6:6:6:6:6:6:6: 7:7:7:7:7:7:7: 8:8:8:8:8:8:8: 9:9:9:9:9:9:9: 0:0:0:0:0:0:0: 1:1:1:1:1:1:1: 2:2:2:2:2:2:2: 3:3:3:3:3:3:3: