can you create a function inside a while loop in python code example
Example 1: python while loop
while whatitis:
#code goes here no comment
Example 2: python do while loop
i = 1
while True:
print(i)
i = i + 1
if(i > 3):
break