sqaure = 1
start = 1443
end = start + 96*3 + 1
for number in range(start, end, 3):
I want to make the output look like:
- 1443
- 1446
- 1449 etc.
>Solution :
You could use enumerate() to get the first number in your output and then use an f-string to format the output:
for i, number in enumerate(range(start, end, 3), start=1):
print(f"{i}. {number}")
Output:
1. 1443
2. 1446
3. 1449
4. 1452
5. 1455
6. 1458
7. 1461