Bummer! This is just a preview. You need to be signed in with an account to view the entire instruction.
Well done!
You have completed (UPI) Chapter 3: Introduction to Basic Data Types and Operations in Python!
Instruction
Implicit and Explicit Type Conversion
Implicit Type Conversion
Common operations update a variable such that the variable's data type needs to be changed. For example, a GPS first assigns distance
with 250
, an integer. After a wrong turn, the GPS assigns distance
with 252.5
, a float. The Python interpreter uses implicit type conversion to automatically convert one data type to another. Once distance
is assigned with...