Hi fellas! well, im triying to restart not the entire function here below, but just from one part as an option if the user dont want the entire count.
I’VE READING ARTICLES , I thank you for the support in advance
def justNumbersAndLoops(a):
for a in range(10):
print(a)
if a == 3:
op1 = input(f'the reached number is {3}, do you want to proceed?: ')
if op1 == 'y':
continue
print(a)
elif op1 == 'n':
break
#here is where my "restart" action should be!
print(justNumbersAndLoops(numbers))