== versus is on strings
QuizEasyPython onlyAsked in: Capgemini, Infosys
What does this print?
a = "hello"
c = "".join(["hel", "lo"])
print(a == c, a is c)to answer and keep your progress. Reading is free for everyone.
What does this print?
a = "hello"
c = "".join(["hel", "lo"])
print(a == c, a is c)to answer and keep your progress. Reading is free for everyone.