+ 1
Explain ! What is the output of this question?
what="""1""" up='1' print(what is up)
5 RĂ©ponses
+ 4
This is simply code we assigned string to what = """1""" and
up = '1' is another string the is operator compare strings equal or not!!!!
+ 2
~ swim ~
Thank you
0
'is' operator checks identity means address used to store the data.
Run below code for understanding the difference between identity and equality.
https://code.sololearn.com/cQMIo5Y1zywd/?ref=app