Skip to content
This repository has been archived by the owner on Feb 15, 2020. It is now read-only.

Software Challenges

schristian edited this page Sep 6, 2012 · 4 revisions

Here are some challenges to get you acquainted with our code base:

Python:

  1. FizzBuzz
  • Iterate through all the numbers from 1 to 100.
  • If the number is divisible by 3, print Fizz.
  • If the number is divisible by 5, print Buzz.
  • If the number is divisible by both 3 and 5, print FizzBuzz.
  • Otherwise,print the current number.
  1. Fibonacci
  • Make a program that prints out the first 30 numbers of the Fibonacci sequence.
  • Try using as few lines as possible. Can you do it in 4 lines?
  1. List Swap
  • Make a list of the first 6 letters (A, B, C, D, E, F).
  • Add a new letter to the end of the list.
  • Swap the elements B and C.
  1. Dictionary Practice
  • Make a dictionary of names and ages (Make these up yourself).
  • Add a new name and age to the dictionary.
  • Remove another name from the dictionary.
  • Print out the age of an individual person.