Marty's Python Pages

Short Tutorial Python Programs

    Beginner

  1. hello.py
  2. age.py
  3. madlib.py
  4. name_re-letter.py
  5. loop.py
  6. celsius.py
  7. celsius_with_error_checking.py
  8. average.py
  9. globaltest.py
  10. cmdloop.py
  11. clock.py

    Writing and Reading Files

  12. writefile.py
  13. readfile.py

    Intermediate — Math Programs

  14. baseconv.py
  15. fraction-calculator.py

    Command Line Interaction

  16. very-long-filename.py
  17. argtest.py
  18. grep.py

    Some Text-Based Games

    Inspired by the classic books "BASIC Computer Games" and "More BASIC Computer Games".

  19. rock-scissors-paper.py
  20. rock-scissors-paper-lizard-spock.py
  21. concentration.py
  22. mastermind.py
  23. Also see A Series of Unfortunate Adventures

    PyGame

  24. circle.py
  25. circles.py
  26. circle_ani.py
  27. ani.py

    Advanced

  28. Algorithm to efficiently find regions and edges in a raster height-map
    (Used in R. Hoetzlein's Luna)

    Browse the directory of programs.

Other