Data Type Conversions

Learn about data type conversions in Python.

We'll cover the following

Conversions

Mixed-mode operations include the following:

  • Operations between int and float will yield float.
  • Operations between int and complex will yield complex.
  • Operations between float and complex will yield complex.

Get hands-on with 1400+ tech skills courses.