How to check if multiple variables are equal in Python

1 Answer

0 votes
a = 'python'
b = 'python'
c = 'python'
d = 'python'

if a == b == c == d:
    print('yes')
else:
    print('no')



'''
run:

yes

'''

 



answered Jul 28, 2022 by avibootz

Related questions

...