Home โ€บ Learning paths โ€บ Variables and Data Types

๐Ÿ”ข Variables and Data Types โ€” learning path

๐Ÿ”ข Beginner13 problemsFree ยท no login needed

What this path teaches

Names, values, and conversions โ€” where NameError, ValueError, and type-mixing bugs live. The through-line: a variable exists only after its assignment runs, and Python never converts types behind your back.

By the end: You can trace where a value came from, what type it is, and convert it deliberately.

Your progress

0 of 13 opened

Start the path โ†’

The problems, in order

  1. 1Using a variable before it exists
    ๐Ÿ› Fix the bug ยท medium
  2. 2Using a variable before it's defined
    ๐Ÿ› Fix the bug ยท medium
  3. 3Calling a variable like a function
    ๐Ÿ› Fix the bug ยท easy
  4. 4Converting text that isn't a number
    ๐Ÿ› Fix the bug ยท easy
  5. 5Converting invalid text to a number
    ๐Ÿ› Fix the bug ยท medium
  6. 6abs() and type conversion
    ๐Ÿ”ฎ Predict the output ยท easy
  7. 7Rounding numbers
    ๐Ÿ”ฎ Predict the output ยท easy
  8. 8Integer division and modulo
    ๐Ÿ”ฎ Predict the output ยท easy
  9. 9Operator precedence
    ๐Ÿ”ฎ Predict the output ยท easy
  10. 10not operator with different types
    ๐Ÿ”ฎ Predict the output ยท easy
  11. 11String comparison basics
    ๐Ÿ”ฎ Predict the output ยท easy
  12. 12Checking if a string is empty
    ๐Ÿ› Fix the bug ยท easy
  13. 13Sorting a list with mixed types
    ๐Ÿ› Fix the bug ยท medium

How to work a path

Do the problems in order โ€” each one assumes the rule taught by the one before it. Open a problem, try it in the interactive editor, and only then read the explanation. Progress is saved in this browser automatically (signed-in solves also earn XP and streaks). One path per week is a solid pace; finishing in a single sitting is allowed but not required.