Skip to content

About

Python teaching materials for beginners: Colab notebooks, worksheets with answers and small projects

Topics

Resources

Stars

3 stars

Watchers

1 watching

Forks

Latest commit

 

History

42 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python teaching materials

Lesson notebooks, worksheets and small projects for teaching Python to beginners, from the first print to classes, linked lists and Big O notation.

Instructor: Ioannis Tsioulis

The notebooks open in Google Colab with one click, so there is nothing to install. The worksheets are PDF or text files; where answers exist, they are linked in the last column.

Looking for a complete course? This material was rewritten, with full explanations, as From Zero to Data Structures and Algorithms in Python on my website.

1. First steps

Material What it covers Run / answers
lesson0.ipynb The first notebook: print, types, variables, arithmetic, input, a first look at lists and None Open in Colab
python task 1.txt Worksheet: printing, variables, lists and input Answers: Open in Colab · file

2. Decisions

Material What it covers Run / answers
lesson if, else....ipynb Five short if / else programs: even or odd, age, comparing two numbers, grades Open in Colab
lesson0 (2).ipynb More worked examples with if, elif and else Open in Colab
lesson1.ipynb Exercises with solutions: age checker, pass or fail, grading system, and the first functions Open in Colab
task 2.pdf Worksheet: temperature check, largest of three, ranges, ticket price, password check Answers: Open in Colab · file

3. Functions

Material What it covers Run / answers
lesson2.ipynb Functions with parameters and return values; a rock, paper, scissors game Open in Colab
Function Practice.pdf Worksheet: ten function exercises on lists and strings, with hints Answers: Open in Colab · file

4. Loops

Material What it covers Run
lesson3 (2).ipynb for and while explained step by step: range, break, loop else, nested lists, zip, primes, an ATM simulation Open in Colab
lesson3.ipynb Looping over lists and strings, list methods, while loops with input Open in Colab
lesson4.ipynb Loop practice with solutions: filtering, sums, a guessing game, counting digits Open in Colab
Python Loop Exercises for Beginners.pdf Worksheet: loop exercises 1 to 15
Python Loop Exercises for Beginners - part2.pdf Worksheet: loop exercises 16 to 25, loops combined with if

5. Mixed practice

Material What it covers Run / answers
5. python task.pdf Worksheet: divisibility checker, password validator, calculator, recursion, menus, primes Answers: Open in Colab · file

6. Classes and objects

Material What it covers Run
Classes and Objects.ipynb Introduction to classes and objects, with five guided exercises Open in Colab
Classes and Objects exercises.pdf Worksheet: more class exercises (shape, clock, counter, book and others)

7. Algorithms and complexity

Material What it covers Run
Understanding Big O Notation with Python.ipynb Big O notation with timing experiments, from O(1) upwards Open in Colab
Determining Big O Complexity and Validating with Experiments.pdf Task sheet: analyse given algorithms, then check your answer by measuring
O.pdf Worked Big O examples (in Greek)
Time.ipynb Timing sorting algorithms and plotting the results Open in Colab
T.ipynb Bubble sort with early exit, timed Open in Colab
linked_list.ipynb Singly linked lists: how they differ from a Python list, the core operations and their cost Open in Colab

8. Small projects

Material What it covers Run / solution
Report.pdf Assignment brief: build a to-do list application and write a short design report Solution: Open in Colab · file
ΑΤΜ State Machine.ipynb An ATM written as a state machine (in Greek) Open in Colab
socket.ipynb A number guessing game over a TCP connection with socket (comments in Greek) Open in Colab

© Ioannis Tsioulis. Prepared for educational use.

About

Python teaching materials for beginners: Colab notebooks, worksheets with answers and small projects

Topics

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages