Coda kid python 1 lessons

Posted by Aavi on August 9, 2022

less than a number:

1
2
3
4
if password <= 10 :
    self.hack(password)
else :
    self.hack()

find the smallest number amongst 3:

1
2
3
4
5
6
7
8
if pass1 < pass2 :
    if pass2 < pass3 :  
        self.hack(pass1)
else :
    if pass2 < pass3 :
        self.hack(pass2)
    else : 
        self.hack(pass3)