Strings in python are immutable objects. Changing a string should create a new object, hence a new id.
For some reason, when I tried performing a simple string concatenation some of the time the id changed and other times it didn't. I noticed when the change I make is small it tends to not change the id but that doesn't seem like a good enough explanation. Just wondering why this is happening.
Here is a screenshot from my IDLE shell. If anyone has an explanation, I would really appreciate it :)
example of id sometimes changing, other times not