QuestionQ230

VerifiedData Collections – Tuples, Dictionaries, Lists, and Strings

What are the data types of x, y, and z after the following code executes?

Question Image

Explanation

Adding integers produces an int; concatenating strings produces a str; and multiplying a string by an integer repeats the string and produces a str.

Community Discussion

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