I want do two functions at same time That the end is related to each other For example :
def func1 ():
while True:
print('it fine')
That this is only for beauty and does not do anything special.
But the next function plays the main role of the program and I want func1 to run until it is finished.
def func2():
number=1000
for i in range(number):
if i % 541 ==0:
print('Horay !!!')
return
Well, here are two questions, one is how can I do this and two can I get out of func1?
i need output like this :
it fine
it fine
it fine
it fine
it fine
it fine
it fine
it fine
it fine
Horay !!!
But I want exactly use two Function.