DEV Community

Discussion on: 30 Days of Python 👨‍💻 - Day 3 - Data Types II

Collapse
 
arindamdawn profile image
Arindam Dawn

Hi. Can you provide an example based on your question? It would be easier for me to understand your doubt then.
The value of a string cannot be mutated
for eg if we try to do something like this

sample = 'hello'
sample[0]='p'
print(sample[0])

It will result in an error