Introduction
To Python
Programming
Introduction to Python programming Course Outline
⬡ Intro to Computer Science ⬡ Lists
⬡ Environment Setup (Anaconda) ⬡ Tuples
⬡ Command Line ⬡ Sets
⬡ Conda & pip package managers ⬡ Dictionaries
⬡ Jupyter Notebook ⬡ Advanced If and Loops
⬡ Input & Output ⬡ List Comprehensions
⬡ Variables ⬡ Dictionary Comprehensions
⬡ Data types ⬡ Exceptions
⬡ Numbers & Math ⬡ File Handling
⬡ Boolean & Comparison and Logic ⬡ Functions
⬡ If Conditions ⬡ Built-in functions & Operators (zip, enumerate, range, …)
⬡ For & While Loops ⬡ Map, Filter, Reduce
⬡ Strings ⬡ Lambda Expressions
Data types
Data types
Python has a lot of built-in data types
Each variable has a data type based on the value assigned to it
You can check a variable’s type using type() function
Introduction to Python programming Course Outline
⬡ Intro to Computer Science ⬡ Lists
⬡ Environment Setup (Anaconda) ⬡ Tuples
⬡ Command Line ⬡ Sets
⬡ Conda & pip package managers ⬡ Dictionaries
⬡ Jupyter Notebook ⬡ Advanced If and Loops
⬡ Input & Output ⬡ List Comprehensions
⬡ Variables ⬡ Dictionary Comprehensions
⬡ Data types ⬡ Exceptions
⬡ Numbers & Math ⬡ File Handling
⬡ Boolean & Comparison and Logic ⬡ Functions
⬡ If Conditions ⬡ Built-in functions & Operators (zip, enumerate, range, …)
⬡ For & While Loops ⬡ Map, Filter, Reduce
⬡ Strings ⬡ Lambda Expressions
60
Numbers & Math
There are two types of numbers in Python:
integers (int) and floating point (float)
Scientific notation is used to describe very
large numbers
2.5e2 = 2.5 x 10 ^ 2 = 250
Numbers & Math
Python supports a number of arithmetic operations
Numbers & Math
You can combine an operator with
the assignment expression (=) to
update a variable’s value
For example, ‘+=‘ increments the
variable on the left hand side by
the value on the right hand side
And ‘*=‘ multiplies the variable on the
left hand side by the value on the
right hand side
Quiz Time!
Q1. 3 + 3 * 3 + 3 Q2. (3 + 3) * (3 + 3)
⬡ A. 36 ⬡ A. 36
⬡ B. 15 ⬡ B. 15
⬡ C. 27 ⬡ C. 27
Q3. 4 // 2 + 5 *
(1+2) Q4. 3 + 3 / 3 - 3 Q5. (3 + 3) / (3 – 3)
⬡ A. 21 ⬡ A. 1 ⬡ A. 1
⬡ B. 9 ⬡ B. ZeroDivisionError ⬡ B. ZeroDivisionError
⬡ C. 17 ⬡ C. 0 ⬡ C. 0
9
Introduction to Python programming Course Outline
⬡ Intro to Computer Science ⬡ Lists
⬡ Environment Setup (Anaconda) ⬡ Tuples
⬡ Command Line ⬡ Sets
⬡ Conda & pip package managers ⬡ Dictionaries
⬡ Jupyter Notebook ⬡ Advanced If and Loops
⬡ Input & Output ⬡ List Comprehensions
⬡ Variables ⬡ Dictionary Comprehensions
⬡ Data types ⬡ Exceptions
⬡ Numbers & Math ⬡ File Handling
⬡ Boolean & Comparison and Logic ⬡ Functions
⬡ If Conditions ⬡ Built-in functions & Operators (zip, enumerate, range, …)
⬡ For & While Loops ⬡ Map, Filter, Reduce
⬡ Strings ⬡ Lambda Expressions
Boolean & Comparison and Logic
Boolean algebra is the type of algebra performed on Boolean values only. Those
are, True and False (0 and 1)
Boolean & Comparison and Logic
Comparisons yield a Boolean value
(Assume a = 10 & b = 20)
Boolean & Comparison and Logic
Like multiplication: 1 x 0 = 0
Like addition: 1 + 0 = 1
Quiz Time!
Q1. 5 > 10 and 3 > Q3. -10 < 3 and 0 <
2 Q2. 5 > 10 or 3 > 2 2
⬡ A. True ⬡ A. True ⬡ A. True
⬡ B. False ⬡ B. False ⬡ B. False
Q4. (not 1 == 10) and 2 >= Q5. 0 > -1 and (1 == 2 and (not 1 !=
2 2))
⬡ A. True ⬡ A. True
⬡ B. False ⬡ B. False
15
Introduction to Python programming Course Outline
⬡ Intro to Computer Science ⬡ Lists
⬡ Environment Setup (Anaconda) ⬡ Tuples
⬡ Command Line ⬡ Sets
⬡ Conda & pip package managers ⬡ Dictionaries
⬡ Jupyter Notebook ⬡ Advanced If and Loops
⬡ Input & Output ⬡ List Comprehensions
⬡ Variables ⬡ Dictionary Comprehensions
⬡ Data types ⬡ Exceptions
⬡ Numbers & Math ⬡ File Handling
⬡ Boolean & Comparison and Logic ⬡ Functions
⬡ If Conditions ⬡ Built-in functions & Operators (zip, enumerate, range, …)
⬡ For & While Loops ⬡ Map, Filter, Reduce
⬡ Strings ⬡ Lambda Expressions
If Conditions
Previously, when we run our code, it would
execute all statements in order
It’s time to apply flow control
If statements allow us to control the flow of
the code based on a certain condition
Quiz Time!
What will be the output of the following if statements:
Q1 Q2
. .
⬡ A. Sloths ⬡ A. It divides by 7
⬡ B. Cats ⬡ B. It divides by 3
⬡ C. No print ⬡ C. Doesn’t divide
18
Introduction to Python programming Course Outline
⬡ Intro to Computer Science ⬡ Lists
⬡ Environment Setup (Anaconda) ⬡ Tuples
⬡ Command Line ⬡ Sets
⬡ Conda & pip package managers ⬡ Dictionaries
⬡ Jupyter Notebook ⬡ Advanced If and Loops
⬡ Input & Output ⬡ List Comprehensions
⬡ Variables ⬡ Dictionary Comprehensions
⬡ Data types ⬡ Exceptions
⬡ Numbers & Math ⬡ File Handling
⬡ Boolean & Comparison and Logic ⬡ Functions
⬡ If Conditions ⬡ Built-in functions & Operators (zip, enumerate, range, …)
⬡ For & While Loops ⬡ Map, Filter, Reduce
⬡ Strings ⬡ Lambda Expressions
For Loops
Loops are used to repeat a certain block of code
For loops can repeat the code for a known number of
times
They should be used when we know how many times
we need the code to repeat
While Loops
While loops keep repeating the code while a given
condition is True
It will break out of the loop once the condition turns
to False
Make sure your condition will turn False after a
while, or you’re getting stuck with an infinite
loop!
Quiz Time!
What will be the output of the following statements:
Q1 Q2
. .
⬡ A. 2, 1, 0 ⬡ A. 12
⬡ B. 2, 1, 0, -1, -2, -3, -4, -5 ⬡ B. 9
⬡ C. 2, 1, 0, -1, -2, -3, -4 ⬡ C. 7
22
Introduction to Python programming Course Outline
⬡ Intro to Computer Science ⬡ Lists
⬡ Environment Setup (Anaconda) ⬡ Tuples
⬡ Command Line ⬡ Sets
⬡ Conda & pip package managers ⬡ Dictionaries
⬡ Jupyter Notebook ⬡ Advanced If and Loops
⬡ Input & Output ⬡ List Comprehensions
⬡ Variables ⬡ Dictionary Comprehensions
⬡ Data types ⬡ Exceptions
⬡ Numbers & Math ⬡ File Handling
⬡ Boolean & Comparison and Logic ⬡ Functions
⬡ If Conditions ⬡ Built-in functions & Operators (zip, enumerate, range, …)
⬡ For & While Loops ⬡ Map, Filter, Reduce
⬡ Strings ⬡ Lambda Expressions
Strings
Strings are ordered sequences of characters (alphabets, numbers, etc.)
Individual characters can be accessed using indexing
String Formatting
A way to inject a variable into a string for convenience
Add an ‘f’ before the string to add formatting,
then add variables using braces {}
Introduction to Python programming Course Outline
⬡ Intro to Computer Science ⬡ Lists
⬡ Environment Setup (Anaconda) ⬡ Tuples
⬡ Command Line ⬡ Sets
⬡ Conda & pip package managers ⬡ Dictionaries
⬡ Jupyter Notebook ⬡ Advanced If and Loops
⬡ Input & Output ⬡ List Comprehensions
⬡ Variables ⬡ Dictionary Comprehensions
⬡ Data types ⬡ Exceptions
⬡ Numbers & Math ⬡ File Handling
⬡ Boolean & Comparison and Logic ⬡ Functions
⬡ If Conditions ⬡ Built-in functions & Operators (zip, enumerate, range, …)
⬡ For & While Loops ⬡ Map, Filter, Reduce
⬡ Strings ⬡ Lambda Expressions
Lists
Lists are the most common data structure in Python
You can store multiple values (elements) inside a single variable
Unlike other programming languages, Python lists can have
elements of different types
Lists
List elements can be lists too!
Introduction to Python programming Course Outline
⬡ Intro to Computer Science ⬡ Lists
⬡ Environment Setup (Anaconda) ⬡ Tuples
⬡ Command Line ⬡ Sets
⬡ Conda & pip package managers ⬡ Dictionaries
⬡ Jupyter Notebook ⬡ Advanced If and Loops
⬡ Input & Output ⬡ List Comprehensions
⬡ Variables ⬡ Dictionary Comprehensions
⬡ Data types ⬡ Exceptions
⬡ Numbers & Math ⬡ File Handling
⬡ Boolean & Comparison and Logic ⬡ Functions
⬡ If Conditions ⬡ Built-in functions & Operators (zip, enumerate, range, …)
⬡ For & While Loops ⬡ Map, Filter, Reduce
⬡ Strings ⬡ Lambda Expressions
Tuples (faster and immutable lists)
Used when you have immutable values and need faster processing on them
Introduction to Python programming Course Outline
⬡ Intro to Computer Science ⬡ Lists
⬡ Environment Setup (Anaconda) ⬡ Tuples
⬡ Command Line ⬡ Sets
⬡ Conda & pip package managers ⬡ Dictionaries
⬡ Jupyter Notebook ⬡ Advanced If and Loops
⬡ Input & Output ⬡ List Comprehensions
⬡ Variables ⬡ Dictionary Comprehensions
⬡ Data types ⬡ Exceptions
⬡ Numbers & Math ⬡ File Handling
⬡ Boolean & Comparison and Logic ⬡ Functions
⬡ If Conditions ⬡ Built-in functions & Operators (zip, enumerate, range, …)
⬡ For & While Loops ⬡ Map, Filter, Reduce
⬡ Strings ⬡ Lambda Expressions
Sets (unique lists)
Used for intersections & union operations
Introduction to Python programming Course Outline
⬡ Intro to Computer Science ⬡ Lists
⬡ Environment Setup (Anaconda) ⬡ Tuples
⬡ Command Line ⬡ Sets
⬡ Conda & pip package managers ⬡ Dictionaries
⬡ Jupyter Notebook ⬡ Advanced If and Loops
⬡ Input & Output ⬡ List Comprehensions
⬡ Variables ⬡ Dictionary Comprehensions
⬡ Data types ⬡ Exceptions
⬡ Numbers & Math ⬡ File Handling
⬡ Boolean & Comparison and Logic ⬡ Functions
⬡ If Conditions ⬡ Built-in functions & Operators (zip, enumerate, range, …)
⬡ For & While Loops ⬡ Map, Filter, Reduce
⬡ Strings ⬡ Lambda Expressions
Dictionaries
Just like a human dictionary, Python
dictionary are data structures that store
data in key – value pairs
Dictionaries
Some of the useful dictionary functions:
dict.get(‘key’, 0) – looks for the key in the
dictionary and returns value if found,
returns default value if not found
dict.keys() – returns dictionary keys
dict.values() – returns dictionary values
More functions:
https://www.w3schools.com/python/
python_ref_dictionary.asp
Quiz Time! Q2. list1 = [1, 2, 3, [1, 2], (1, 2,
Q1. list1 = ['physics', 'chemistry', 1997, 2000] 3)]
print(list1[1][-1]) print(len(list1))
⬡ A. p ⬡ A. 8
⬡ B. c ⬡ B. 5
⬡ C. y ⬡ C. 6
⬡ D. Error
Q4. name = “Data Science”
Q3. list1 = [1998, 2002] print(name[:4] + “Analysis”)
list2 = [2014, 2016]
print(list2 + list1)
⬡ A. [4012, 4018] ⬡ A. “Data Analysis”
⬡ B. [2014, 2016, 1998, 2002]
⬡ B. “Data Snalysis”
⬡ C. [1998, 2002, 2014, 2016]
⬡ C. “DataAnalysis”
36
Introduction to Python programming Course Outline
⬡ Intro to Computer Science ⬡ Lists
⬡ Environment Setup (Anaconda) ⬡ Tuples
⬡ Command Line ⬡ Sets
⬡ Conda & pip package managers ⬡ Dictionaries
⬡ Jupyter Notebook ⬡ Advanced If and Loops
⬡ Input & Output ⬡ List Comprehensions
⬡ Variables ⬡ Dictionary Comprehensions
⬡ Data types ⬡ Exceptions
⬡ Numbers & Math ⬡ File Handling
⬡ Boolean & Comparison and Logic ⬡ Functions
⬡ If Conditions ⬡ Built-in functions & Operators (zip, enumerate, range, …)
⬡ For & While Loops ⬡ Map, Filter, Reduce
⬡ Strings ⬡ Lambda Expressions
Again??
Advanced if conditions
We can add if conditions inside if conditions,
creating a nested if condition!
Advanced if conditions
We can write if conditions in one line: inline if statement
if x > 0:
y=x*2
else:
y = x * -1
y = x * 2 if x > 0 else x * -1
Advanced for loop
For loop can be used to iterate over any iterable
Lists, tuples, strings, sets and dictionaries are all examples
of Python iterables
Advanced for loop
Continue: skip the current iteration and go to the next one
Break: break out of the loop and end the loop
Advanced for loop
We can use ‘else’ with for loops, just like ‘if’
The code block in ‘else’ will only be executed if the
loop finishes running normally. If a break
happens, the ‘else’ block will not be executed
Advanced while loop
Just like for loops, we can use break and continue
using while loops too
Advanced while loop
‘else’ statement works on while too!
Quiz Time!
What will be the output of the following statements:
Q1
.
⬡ A. 2
Q2
.
⬡ B. 5
⬡ C. 3
⬡ A. J, h, o, n, It’s John!
⬡ B. J, h, n, It’s John!
⬡ C. J, h, n
45
Introduction to Python programming Course Outline
⬡ Intro to Computer Science ⬡ Lists
⬡ Environment Setup (Anaconda) ⬡ Tuples
⬡ Command Line ⬡ Sets
⬡ Conda & pip package managers ⬡ Dictionaries
⬡ Jupyter Notebook ⬡ Advanced If and Loops
⬡ Input & Output ⬡ List Comprehensions
⬡ Variables ⬡ Dictionary Comprehensions
⬡ Data types ⬡ Exceptions
⬡ Numbers & Math ⬡ File Handling
⬡ Boolean & Comparison and Logic ⬡ Functions
⬡ If Conditions ⬡ Built-in functions & Operators (zip, enumerate, range, …)
⬡ For & While Loops ⬡ Map, Filter, Reduce
⬡ Strings ⬡ Lambda Expressions
List Comprehensions
List comprehensions offer a shorter way to create a
new list based on the values of an existing list
It can be used instead of typing a full for loop
Same as
Quiz Time!
What will be the output of the following statement:
Q1
.
⬡ A. 121
⬡ B. 9
⬡ C. 49
48
Introduction to Python programming Course Outline
⬡ Intro to Computer Science ⬡ Lists
⬡ Environment Setup (Anaconda) ⬡ Tuples
⬡ Command Line ⬡ Sets
⬡ Conda & pip package managers ⬡ Dictionaries
⬡ Jupyter Notebook ⬡ Advanced If and Loops
⬡ Input & Output ⬡ List Comprehensions
⬡ Variables ⬡ Dictionary Comprehensions
⬡ Data types ⬡ Exceptions
⬡ Numbers & Math ⬡ File Handling
⬡ Boolean & Comparison and Logic ⬡ Functions
⬡ If Conditions ⬡ Built-in functions & Operators (zip, enumerate, range, …)
⬡ For & While Loops ⬡ Map, Filter, Reduce
⬡ Strings ⬡ Lambda Expressions
Dictionary Comprehensions
Dictionary comprehension is a method for transforming one dictionary into
another dictionary. During this transformation, items within the original dictionary
can be conditionally included in the new dictionary and each item can be
transformed as needed.
50
Introduction to Python programming Course Outline
⬡ Intro to Computer Science ⬡ Lists
⬡ Environment Setup (Anaconda) ⬡ Tuples
⬡ Command Line ⬡ Sets
⬡ Conda & pip package managers ⬡ Dictionaries
⬡ Jupyter Notebook ⬡ Advanced If and Loops
⬡ Input & Output ⬡ List Comprehensions
⬡ Variables ⬡ Dictionary Comprehensions
⬡ Data types ⬡ Exceptions
⬡ Numbers & Math ⬡ File Handling
⬡ Boolean & Comparison and Logic ⬡ Functions
⬡ If Conditions ⬡ Built-in functions & Operators (zip, enumerate, range, …)
⬡ For & While Loops ⬡ Map, Filter, Reduce
⬡ Strings ⬡ Lambda Expressions
Exceptions
When an error occurs in Python, the whole program
crashes and stops execution
Exception handling is a way of handling errors so
that the program can overcome them and
continue running normally
Exceptions
We can make Python check for specific errors
Check Python Error Types
https://docs.python.org/3/library/exceptions.html
Exceptions
Try statements have two extra features:
-
-
‘else’ : will execute if no errors were caught
‘finally’ : will execute whether there were
errors caught or not (always execute)
Introduction to Python programming Course Outline
⬡ Intro to Computer Science ⬡ Lists
⬡ Environment Setup (Anaconda) ⬡ Tuples
⬡ Command Line ⬡ Sets
⬡ Conda & pip package managers ⬡ Dictionaries
⬡ Jupyter Notebook ⬡ Advanced If and Loops
⬡ Input & Output ⬡ List Comprehensions
⬡ Variables ⬡ Dictionary Comprehensions
⬡ Data types ⬡ Exceptions
⬡ Numbers & Math ⬡ File Handling
⬡ Boolean & Comparison and Logic ⬡ Functions
⬡ If Conditions ⬡ Built-in functions & Operators (zip, enumerate, range, …)
⬡ For & While Loops ⬡ Map, Filter, Reduce
⬡ Strings ⬡ Lambda Expressions
File Handling
Python supports handling of various file types,
one example is text files
-
Python can open text files in three modes:
-
Read mode (r)
-
Write mode (w)
Append mode (a)
Handling files with Python is very important
since most of our data is stored in files of
different types
Introduction to Python programming Course Outline
⬡ Intro to Computer Science ⬡ Lists
⬡ Environment Setup (Anaconda) ⬡ Tuples
⬡ Command Line ⬡ Sets
⬡ Conda & pip package managers ⬡ Dictionaries
⬡ Jupyter Notebook ⬡ Advanced If and Loops
⬡ Input & Output ⬡ List Comprehensions
⬡ Variables ⬡ Dictionary Comprehensions
⬡ Data types ⬡ Exceptions
⬡ Numbers & Math ⬡ File Handling
⬡ Boolean & Comparison and Logic ⬡ Functions
⬡ If Conditions ⬡ Built-in functions & Operators (zip, enumerate, range, …)
⬡ For & While Loops ⬡ Map, Filter, Reduce
⬡ Strings ⬡ Lambda Expressions
Functions
Functions are used to store a block of code to
run later when needed
They become very handy when code needs to
be used frequently, and it helps in
encapsulation
In Python, we define a function and give it a
name. When we need to use it, we ‘call’ it
using its name
Function Arguments
Functions can have parameters that would be
passed when the function is called
Those are called input arguments
Function Return
In many cases, functions can be used to perform
a certain operation to calculate a value
We usually need this value for further use
We can use functions’ ‘return’ to return a value
back to our program
Quiz Time!
What will be the output of the following statement:
⬡ A. Welcome
Q1 Viewers
.
⬡ B. Welcome
ViewersViewersViewers
⬡ C. Welcome
Viewers,Viewers,Viewers
⬡ D. Welcome
61
Introduction to Python programming Course Outline
⬡ Intro to Computer Science ⬡ Lists
⬡ Environment Setup (Anaconda) ⬡ Tuples
⬡ Command Line ⬡ Sets
⬡ Conda & pip package managers ⬡ Dictionaries
⬡ Jupyter Notebook ⬡ Advanced If and Loops
⬡ Input & Output ⬡ List Comprehensions
⬡ Variables ⬡ Dictionary Comprehensions
⬡ Data types ⬡ Exceptions
⬡ Numbers & Math ⬡ File Handling
⬡ Boolean & Comparison and Logic ⬡ Functions
⬡ If Conditions ⬡ Built-in functions & Operators (zip, enumerate, range, …)
⬡ For & While Loops ⬡ Map, Filter, Reduce
⬡ Strings ⬡ Lambda Expressions
Built-in functions & Operators
Python supports a lot of functions and operators that are built inside it
Examples of built-in functions:
⬡ Range
⬡ Enumerate
⬡ Zip
⬡ In operator
Check out more functions here
https://docs.python.org/3/library/functions.html
And much more!
Range
⬡ range(start, stop, step) – returns a list of value
starting with ‘start’ up to ‘stop’, taking a step size of
‘step’
It stops before the stop, meaning it doesn’t include
the ‘stop’ value
Enumerate
⬡ enumerate(list) – returns a list of tuples containing
an index associated to each value in the original
list
This is very useful when we need to iterate through
a list and use the index at the same time
Zip
⬡ zip(list1, list2, …) – concatenates two or more lists
together, element wise
It’s very useful when we need to iterate over
multiple lists at the same time (e.g. we need to
iterate over student name and grade)
in
We used the in operator earlier when dealing with for
loops
‘in’ operator can also be used for logical operations,
to check if a value exists in some container
Introduction to Python programming Course Outline
⬡ Intro to Computer Science ⬡ Lists
⬡ Environment Setup (Anaconda) ⬡ Tuples
⬡ Command Line ⬡ Sets
⬡ Conda & pip package managers ⬡ Dictionaries
⬡ Jupyter Notebook ⬡ Advanced If and Loops
⬡ Input & Output ⬡ List Comprehensions
⬡ Variables ⬡ Dictionary Comprehensions
⬡ Data types ⬡ Exceptions
⬡ Numbers & Math ⬡ File Handling
⬡ Boolean & Comparison and Logic ⬡ Functions
⬡ If Conditions ⬡ Built-in functions & Operators (zip, enumerate, range, …)
⬡ For & While Loops ⬡ Map, Filter, Reduce
⬡ Strings ⬡ Lambda Expressions
Map, Filter, Reduce
There are a bunch of other useful functions in Python like map, filter & reduce
⬡ map(function, list) – applies a certain function on each element in the list and
returns a new list with those values
Map, Filter, Reduce
⬡ filter(function, list) – applies a filter function on the list and returns the values that
have a True value on the filter function
Map, Filter, Reduce
⬡ reduce(function, list) – applies a function on the list that reduces all elements
into a single value (like a sum) and returns that value
Lambda Expressions
In Python, Lambda expressions are used to define
an anonymous function - a function with no name
that can’t be called
Why would we need this?
You may have noticed in the previous examples
that we defined a function for each operation we
had to do
We can use lambda functions to define functions on
the fly without having to define them earlier
separately
Quiz Time!
What will be the output of the following statements:
Q1 Q2
. .
⬡ A. [“bay”, “cat”] ⬡ A. [1, 2, 3]
⬡ B. [“bay”, “boy”] ⬡ B. [1, 4, 9]
⬡ C. ["bay", "cat", "boy", "fan"] ⬡ C. [2, 4, 6]
73
Introduction to Python programming Course Outline
⬡ Intro to Computer Science ⬡ Lists
⬡ Environment Setup (Anaconda) ⬡ Tuples
⬡ Command Line ⬡ Sets
⬡ Conda & pip package managers ⬡ Dictionaries
⬡ Jupyter Notebook ⬡ Advanced If and Loops
⬡ Input & Output ⬡ List Comprehensions
⬡ Variables ⬡ Dictionary Comprehensions
⬡ Data types ⬡ Exceptions
⬡ Numbers & Math ⬡ File Handling
⬡ Boolean & Comparison and Logic ⬡ Functions
⬡ If Conditions ⬡ Built-in functions & Operators (zip, enumerate, range, …)
⬡ For & While Loops ⬡ Map, Filter, Reduce
⬡ Strings ⬡ Lambda Expressions
Project #1 Rock Paper Scissors
Project #2 HangMan
Questions ?!
Thanks!
>_ Live long and prosper