Loading video...
Video Failed to Load
Can you solve this string comparison challenge? Explore the behavior of Python's string handling and learn about memory optimization in the language.
27,711 views • 1 year ago •via X (Twitter)
3 Comments

Google for Developers1 year ago
Here's a hint:

Arman1 year ago
print(a is d) will be False. While a is an interned string literal, "".join() creates a new string object for d, so they aren't the exact same object in memory, even if their value is identical.

1st Amendment1 year ago
you getting system responses from the ai too?



