Grids - Answers
Q1. Get the code working.
Q2. This prints off a grid of numbers:
1 2 3
2 4 6
3 6 9
Q3.
Q4. \t is an escape sequence. It is used to force the cursor to TAB along the line.
Q5. end=" " forces a space at he end of the print line rather than a RETURN.
Q6.
count=0
for a in range(1,26):
print(a,end="\t")
count = count + 1
if count%5==0:
print("\n")