QuestionQ259

VerifiedComputer Programming and Python Fundamentals

Consider the following Python code:

Question Image

What are the data types of z1, z2, and z3?

Explanation

Multiplying a string by an integer produces a repeated string, so z1 is str. Python’s / operator performs true division and returns a float; therefore, both z2 and z3 are float.

Learn more

Community Discussion

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