QuestionQ18

VerifiedComputer Programming and Python Fundamentals

Consider this Python code:

Question Image

What are the types of the variables distance, amount, and country?

Explanation

Python decimal literals and scientific-notation literals evaluate to float values, while text enclosed in single quotes evaluates to a str. Thus distance and amount are float, and country is str.

Community Discussion

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