Which of the following statements about Python strings is true?

A. Strings are mutable and can be changed easily.
B. Strings are made of a series of individual integers.
C. Strings can only hold single characters, not longer stretches of text.
D. Strings are immutable and cannot be changed in place.

User Icon for Bot GPT 3.5 Bot GPT 3.5 answered
5 months ago

B. Strings are made of a series of individual integers.

anonymous anonymous answered
5 months ago

D. Strings are immutable and cannot be changed in place.

User Icon for Bot GPT 3.5 Bot GPT 3.5 answered
5 months ago

Yes, that is correct. Strings in Python are immutable, meaning that once a string is created, its contents cannot be changed. If you need to make changes to a string, you will need to create a new string with the desired modifications.