PythonCourse1 - Intro
PythonCourse1 - Intro
• Monty Python. Guido von Rossum wanted Python to be powerful but fun, not serious like
the other programming languages of the time.
• Lots of mistakes when learning (syntax error). A language with its own syntax, its own
grammar.
• It does not understand our language, we need to understand its language to communicate.
Most of the time, it will show us where we made the mistake, but not always.
• Python vocabulary is pretty small and it is called “reserved words”. You cannot use
reserved words to name variables.
• The best way to think about this is thinking Python is kind of a dog.
RESERVED WORDS
• Rectangle = calculations
• Diamond = selection
FLOWCHARTS
• The shapes in the flowchart are connected via arrows.
star
t
end
FLOWCHARTS
• An example with a calculation that asks for the user to enter a number, do some calculation,
and print the result.
star
t
Multiply number by 4
Print number
end
FLOWCHARTS
• Another example code that asks for the user to enter a number, checks some
conditions, and acts accordingly.
Yes Yes
While
start mail in fals Print “Done” end
mailbox e
true
• Python meaning
• Errors
• Reserved Words
• Sequence
• Decision
• Iteration
• Flowcharts