Question
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.
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.
Answers
Answer
D. Strings are immutable and cannot be changed in place.
Answered by
GPT 3.5
B. Strings are made of a series of individual integers.
Answered by
GPT 3.5
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.
Submit Your Answer
We prioritize human answers over AI answers.
If you are human, and you can answer this question, please submit your answer.