Python_Institute
PCAP-31-03 · Question #66
Which of the following statements are true? (Select two answers)
The correct answer is B. Python strings can be concatenated C. Python strings can be sliced like lists. Python strings cannot be changed - they are immutable.
Technology and architecture
Question
Which of the following statements are true? (Select two answers)
Options
- APython strings are actually lists
- BPython strings can be concatenated
- CPython strings can be sliced like lists
- DPython strings are mutable
How the community answered
(36 responses)- A11% (4)
- B72% (26)
- D17% (6)
Explanation
Python strings cannot be changed - they are immutable.
Topics
#Python strings#concatenation#slicing#string mutability
Community Discussion
No community discussion yet for this question.