Python

Eliminate mistakes in strings, mutation, aliasing, object state, and complexity.

Recommended resources

Instructions

  1. Predict exact repr output before execution.

Ordered items

  1. Aliasing and shallow copyPython · Medium · 7 min · Original
  2. Even-indexed characters finger exerciseControl Flow · Easy · 5 min · External
  3. Compare character sets in two stringsControl Flow · Easy · 6 min · External
  4. List mutation and sorting finger exercisePython · Easy · 8 min · External
  5. Circle class and value equalityPython · Medium · 12 min · External
  6. Asymptotic complexity finger exercisePython · Medium · 10 min · External

Completion

Explain every mutation and asymptotic cost in the selected code.

Next