3 ms·
Modern Python has a single type of string. What used to be called "string" in Python 2 is no longer called that, precisely so as to avoid unnecessary confusion
by int_19h 1y ago
Modern Python has a single type of string.
What used to be called "string" in Python 2 is no longer called that, precisely so as to avoid unnecessary confusion. It's called "bytes", which is why the question of "why do I have to convert it to string?" doesn't arise.