QuestionQ186

VerifiedData Collections – Tuples, Dictionaries, Lists, and Strings

Consider the following Python code:

Question Image

What are the data types of the variables name, age, and flag?

Explanation

In Python, text enclosed in quotes has type str, a whole-number literal such as 23 has type int, and the Boolean literal True has type bool.

Community Discussion

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