This is my code:
x = 8
while x <= 31:
j = 1
while j <= 7:
print(j, "\t", end=' ')
j += 1
print("\n")
print(x, "\t", end=' ')
x += 7
The outcome is supposed to be where the month starts on a Sunday, starting from 1 - 31.
So far, this is the outcome of the code I have:
Sun Mon Tue Wed Thu Fri Sat
1 2 3 4 5 6 7
8 1 2 3 4 5 6 7
15 1 2 3 4 5 6 7
22 1 2 3 4 5 6 7
29
I can't figure out how to get the second line to continue with 9-14 and so on.