What is the equivalent of && (logical and) in if-statement in Python

1 Answer

0 votes
# && = and 

a = 3
b = 5

if (a == 3 and b == 5):
    print("yes")
else:
    print("no")
    


'''
run:

yes

'''

 



answered Apr 18, 2019 by avibootz

Related questions

1 answer 236 views
1 answer 158 views
1 answer 141 views
1 answer 179 views
1 answer 186 views
1 answer 250 views
1 answer 178 views
...