Monday, June 22, 2015

Code Camp: Day One





First we assembled the Raspberry Pi then we programmed Jokes!


For the advanced code camp this year, students worked in groups of 3 or 4 and coded programs using the language Python on Raspberry Pi computers.

The Raspberry Pi is a small computer designed for use by coders, engineers, and people interested in learning how to program.

The Raspberry Pi B

Students learned to:

  • connect the Pi to a monitor, keyboard, power source, and mouse.
  • open and use the Python shell program
  • write code that would print a brief message (Hello World!)
  • write a module that would show the beginning of a joke, wait for user input (Enter), and show the punch line of a joke


DAY ONE CONCEPTS:
  • Hardware:
    • monitor (visuals)
    • keyboard & mouse (input)
    • Raspberry Pi (processing unit)
  •  Software:
    • NOOB (new out of box) -- the basic programs used by the Raspberry Pi
    • Python Shell -- a program that allows you to write and run modules
  • Coding:
    • strings (str): text or words
    • print (print): writes whatever is inside parentheses and apostrophes
    • input (input): accesses what the user types
    • string concatenation: linking strings (+)
    • extensions: .py (python file), .doc (document file), etc.

No comments:

Post a Comment