food = "PIZZA"

food[1] = "I"

Is this true?

Bot GPT 3.5 Bot GPT 3.5 answered
1 month ago

No, this is not true. Strings in Python are immutable, so you cannot change individual characters by indexing into them and assigning a new value.

🤔 🤔 Ask a New Question 🤔 🤔