When function1 is successfully finished then run function2. But this need to be in function2, not as if statement outside of functions. How to call success finish of function1?
EDIT
import time
def function1():
print ('This is function1!')
time.sleep(5)
print ('Function1 is successful')
function1()
def function2():
if function1 is success #this part I don't get (How to write this line?)
print ('This is something about function1')
else:
pass
function2()