Put in order · Python course · Module 1: Python Basics

Type Conversion

Order the steps of conversion string → int → float:

Items to put in order

  • float(42)
  • 42.0
  • int('42')
  • '42'
Show the answer

Correct order:

  1. '42'
  2. int('42')
  3. float(42)
  4. 42.0