Professional Documents
Culture Documents
Science
About me
About you Kahoot
Part 1 – Introduction
to Programming
What is Programming?
The process of preparing an instructional program for a
device.
Or in simpler words,
Attempting to get a computer to complete a specific task
without making mistakes.
Cooking Example
• High-level
• General-purpose
• Interpreted (vs compiled)
Integrated Development Environments
(IDE’s)
•A place to write and run computer
programs.
Example IDEs
IDLE
Replit
IDE Features
• Detects syntax errors
• Auto-fill
• And much more
Replit (Browser based IDE)
In this course, we will learn about how to write computer programs that
solve problems.
If you want to succeed in this course:
Reading the material is NOT enough
Most important is practice writing code
Part 2 – Introduction
to Python
Python’s basics
•Note: Without a print statement your program will NOT show anything in the
console:
VS
Simple arithmetic
Addition, Subtraction, Multiplication and Division
Modulus
• Each Variable has a type, a name and a piece of information stored inside
of it
name
Primitive Variable Types
• Integers
• Float
• Strings
• Boolean
Integer (int)
• Can store integer value
• (-2,147,483,648 through 2,147,483,647)
• Cannot hold decimal value
Boolean (bool)
Can store values True or False
Float
Stores real numbers with decimal places
String
• Stores text
• Useful for
• Displaying text
• Storing input information
• Outputting information in a readable format
Name Variable example
10
x
Warehouse vs computer memory
x
How to change a variable
age = 17
age = 18
Other ways of manipulating variables