PHSgeek – Python Exercises

There are many sets of python challenges available online, but many of them get out of beginner-friendly territory very quickly.  Here are some challenges that help you get familiar with using lists.  These exercises are phrased for people learning python, but can be easily adapted to any language you are working through.

  • Groups of People
    • Starts very simple, and gets more interesting and challenging.  List the names of a group of people, and then add more interesting information.
  • FizzBuzz
    • A classic programming interview exercise, to show that you have some concrete understanding of programming concepts.
  • Digits of Pi
    • Count the number of times each digit, from 0-9, appears in the first million digits of pi.
Advertisements

About ehmatthes

Teacher, hacker, new dad, outdoor guy
This entry was posted in programming and tagged , , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s