0
What is different between these?
if 1 is 1: print("yes") >>>yes if [1] is [1] : print("yes") >>>No output
4 RĂ©ponses
+ 4
"is" compares the addresses, so your two lists are actually not the same
See this for clarification:
https://code.sololearn.com/cr8Tya93btDT/?ref=app
+ 1
First, the statment is True, so return âYesâ
Second, the statmen is False, but it donât have âelseâ. Then, it return No output.
+ 1
I fully understood. I was very impressed with your coding(Matthias ).
Thank you for your explanation!! :)
0
I didn't clearly inquire Q.
Superficially we may not know what the Q is. đ
Im sorry TT
But thanks you gave me your time!
Michita Sato