View
214
Download
0
Tags:
Embed Size (px)
Citation preview
Where have we been?
Websites• HTML Code• CSS Code• PHP includes
Spreadsheets• Booleans• If Statements• Logical Breakdown of
Problems• Strings• Error Handling
Where can you go?
With the skills you’ve learned, our claim is that you essentially know the building blocks for learning how to program.
You can very easily make the jump to a programming language.
What is Programming?
• Need to understand WHAT you want to build
• Take a large problem and break it into smaller pieces
• Write in a programming language
• Make it available to people to use
Problem Break Down• Where have we seen the need to break
problems into smaller parts?• Grades
• Normalize• Drop lowest exam• Absence• Translate to letter grade
• Book List• Author last name• Format title• Retrieve country
For Bigger Project• If you were to write a word processor:
• Type characters• receive input from keyboard
• Erase characters• receive input from keyboard
• Spell check• Formatting• Table of contents• …
Error Handling
• Allows a program to give a meaningful message to the user.
• Seen in Excel as #value vs. “Please check value”.
• Can cause a program to exit cleanly rather than crashing.
Python
Python was created to be:
simple
free of excess syntax
beautiful
You can download & play with python here:
http://www.python.org/download/
What can we do in Python?
Just about everything!• Strings
• Concatenation• Substring• Trim
• Booleans• If Statements
Python
• Can be used two ways
• Interactive
• Produce a program for others
• Python has it’s own syntax, just like CSS & HTML