Right now I have a script that is meant to loop forever. However, I would like to do something different on the first 'lap' along the lines of the following:
import math
for i in range(0,math.inf):
if i == 0:
print("I'm gonna start the first lap")
print('this is one lap')
"I'm gonna start the first lap"
'this is a lap'
'this is a lap'
Note that this code does not work because math.inf is a float, NOT an integer. And this post here says that in Python there is no way to represent infinity as an integer.
Using while True:
could make sense in this situation, but is there any way to get the function to print something different for first (or the xth) repetition for that matter?