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 235 views
1 answer 151 views
1 answer 135 views
1 answer 174 views
1 answer 183 views
1 answer 247 views
1 answer 172 views
...