Python Stepper Examples

Here is a directory of examples you can use to quickly test Stepper. It's best to step through the examples to see what values variables have at each step. Examples marked with have errors for illustrative purposes.

 

Basic Expressions
 basic numbers
 numeric types
  numeric operators
 basic booleans
 comparisons

Lists
 basic lists
 indexing
 list functions
 slices
 indexing, types
 comparisons
 comprehensions
 range function

Strings
 basic strings
 special characters
 comparisons
 operators & functions
 methods

Assignment
 basic and tuple
 indexed
 dictionary
 slice
 augmented
 local vs global
 nested scope
 alias / index
 alias / slice
 alias / nested

Note:
 For a graphic view of aliasing, you may wish to try the Python Visualizer

Mutating Methods
 append/extend
 reverse
 sort
 pop

Iteration
 growing lists/strings
 simple output
 modifying a list
 nested loops
 counting with dictionary

Print and Format
 basic print
 using format

Functions
 lambdas
 using def

Math
 math functions

Random
 random methods

Recursion
 multiply
 Euclid

Drawing
 labels
 colors
 shapes/lines
 polygons

Algorithms
 binary search