Introduction To Python
Introduction To Python
Success Criteria
• To know how to start Python IDLE and run a Python program.
• To use Python to perform calculations.
• To write simple programs that respond to user input.
What Is Python?
Python is a programming language.
It was invented in the 1980s.
It was named after comedy group ‘Monty Python’.
Interactive Script
Computer programs become much more interesting and useful when they
can respond to user input.
• input is our next Python command. It waits for the user to type in
something, in this case we are asking the user to type in their name.
• What happens to the name that is typed in?
• Answer: not much at the moment!
• There is something that happens though, we just can’t see it yet…
Incredible Inputs
To understand what’s going on, let’s look back at the Python
code we entered:
Try out the following code in Python and see what happens:
• Take care with your typing, watch our for the commas and quotes!
“Monty”
Interactive Script
• Click on File
“Monty” “Monty”
What is your name? Monty
How are you today? not bad”
“not bad at all
What is your favourite food?“chips”
fish and chips
Greetings Monty
I hear that you are feeling not bad at all
Maybe you need tasty fish and chips to eat?
“not bad”
“chips”
Success Criteria:
• To know how to start Python IDLE and run a Python program.
• To use Python to perform calculations.
• To write simple programs that respond to user input.
Nailing It Down
We have learned a lot today about Python IDLE, print and input.
Python is a great programming language to learn.
You can download it yourself at home for free by visiting:
https://www.python.org/downloads/
(or just search for ‘python’ using your favourite search engine).
There are also lots of free online versions of Python which are great for
learning how to code. Try out some of these links now:
• https://snakify.org/
• http://pythontutor.com/
• https://hourofpython.com/
• https://repl.it/languages/python3