Can you edit a character in a string ?How do you change a string in python?
Can you edit a character in a string ?How do you change a string in python?
If p=”nice”
how do I make “nice” into “Nice” ?
The answer is that strings are immutable, meaning they cant be changed.
so you would need to assign p to a a new string
p=”Nice”
cannot do p[0]=’N’