+ 1

Explain ! What is the output of this question?

what="""1""" up='1' print(what is up)

7th Jun 2020, 1:40 AM
Indira
Indira - avatar
3 odpowiedzi
+ 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!!!!
7th Jun 2020, 2:48 AM
Shahghasi Adil
Shahghasi Adil - avatar
+ 2
~ swim ~ Thank you
7th Jun 2020, 2:18 AM
Indira
Indira - avatar
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
7th Jun 2020, 4:44 AM
$¢𝐎₹𝔭!𝐨𝓝
$¢𝐎₹𝔭!𝐨𝓝 - avatar