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 152 views
1 answer 136 views
1 answer 175 views
1 answer 184 views
1 answer 248 views
1 answer 173 views
...