mercredi 3 juin 2020

Meaning of statement "elif" in Python

In the following code i want to know what exactly is the meaning of the elif statement.I know that if the "if" statement gives false then the statements in the "elif" statement will occur .However i wanna know exactly which is the false condition from the "if" statement(if it is false).Is being continued in my comment

    def find_Biggest():      
        #function definition
        if(a>b) and 
         (a>c):
            largest=a
        elif(b>a) 
         and (b>c):
            largest=b
        else:
            largest=c

Aucun commentaire:

Enregistrer un commentaire