One of the first things I learned about data types in Python is that strings aren't mutable. Can't be changed. However, how you explain this:
a = 'hakuna'
a += ' matata'
print(a)
>>> hakuna matata
One of the first things I learned about data types in Python is that strings aren't mutable. Can't be changed. However, how you explain this:
a = 'hakuna'
a += ' matata'
print(a)
>>> hakuna matata