lundi 15 juin 2020

Function with IF statement in Python [closed]

Hi I am new in the programming.

  • I have 3 Functions
  • I want to tell function a if var1 completed from that call
  • i want it to go to function c.

The question is how i can do it in this situation ?

def a():
    var_1 = b()
    # if statement in that question goes here :
        c()

def b():
    var_2 =  ----->   # long running task

def c():
    pass
a()

Aucun commentaire:

Enregistrer un commentaire