QuestionQ51

VerifiedData Collections – Tuples, Dictionaries, Lists, and Strings

What will be the output of the following code?

Question Image

Explanation

A triple-quoted string includes the newline between its opening and closing delimiters. The string therefore contains one character, and len(x) returns 1.

Community Discussion

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