QuestionQ85

VerifiedData Collections – Tuples, Dictionaries, Lists, and Strings

Which of the following statements is true?

Question Image

Explanation

str2 = str1[:] takes a complete slice of str1. Since strings are immutable, both names refer to the same string value, 'Peter', and the strings have equal length.

Community Discussion

No comments yet. Be the first to start the discussion!