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 193 views
1 answer 101 views
1 answer 87 views
1 answer 119 views
1 answer 126 views
1 answer 204 views
1 answer 122 views
...