What is string interning in Python?
Correct answer
D. Reusing a single copy of identical strings in memory
6 views
D. Reusing a single copy of identical strings in memory
6 views
CPython interns some strings, such as identifiers, to save memory and speed up comparisons.
Asked in: Python Interview Strings
https://docs.python.org/3/library/stdtypes.html#string-methodsNot sure why the answer is D? Ask here and get an explanation.