| 
  • If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • You already know Dokkio is an AI-powered assistant to organize & manage your digital files & messages. Very soon, Dokkio will support Outlook as well as One Drive. Check it out today!

View
 

All Python 3 Lessons

Page history last edited by Jesse R Linseman 3 years, 10 months ago

Download Python HERE for your home computer. Note it is available in advertised software on most school computers.  Look for version 3.7.2 or higher.

It will also install IDLE (Integrated Development Learning Environment)

 

Input-Processing-Output

Lesson/Topic
Activity ~ Classwork ~ Homework
Materials & Resources

Introduction to Python

VideoLesson

 

Presentation: Basic Output

VideoLesson

 
 
[Output Exercises]

VT - Socratica - Hello World

VT - MicrosoftDev - Using Print 

VT - MicrosoftDev - Comments - Demo



Presentation - Input & Variables

VideoLesson 


[Input Exercises]

VT - Socratica - Strings 

VT - MicrosoftDev - String Concepts - Demo

 

Calculations & Assignment Operator

VideoLesson

  1. Presentation - Calculations
  2. Calculation & Variables Exercises

VT - Socratica - Numbers

VT - Socratica - Arithmetic

VT - MicrosoftDev - Numeric Data - Demo

 

Working with Numbers and Strings

VideoLesson

  1. Presentation -  Working with Numbers & Strings
Working with Dates   VT - MicrosoftDev Date date types - Demo

Formatted Output

VideoLesson

  1. Presentation - Formatted Output in Python
Error Handling   VT - MicrosoftDev Error Handling - Demo

 

Selection If/Else Statements

Topic
Activity ~ Classwork ~ Homework
Materials & Resources

Introduction to Selection:
Decisions using IF/ELSE 

VideoLesson

  1. Presentation - Simple If/Else Statements
  2. Exercises - Simple Decisions Part A # 1, 2, 3

VT - Socratica - If, Then, Else 

VT - MicrosoftDev Handling Conditions - Demo
 

Nested Selection Statements
(more than 2 choices)

VideoLesson

  1. Presentation - Nested Selection Statements
  2. Exercises - Selection Part B
VT - MicrosoftDev - Handling Multiple Conditions - Demo
 

Logical Operators & Boolean Expressions:
(AND, OR)

VideoLesson

  1. Presentation - Logical Operators
  2. Exercises - Selection Part B
    (try Part C if done Part B)

VT - Socratica - Booleans 

VT - MicrosoftDev - Complex Conditions - Demo

 

Repetition (Loops)

Topic
Activity ~ Classwork ~ Homework
Materials & Resources

Counted Loops

VideoLesson

  1. Lesson - Counted Loops
  2. counted loop exercises
  3. more counted loop exercises
 

Conditional Loops

VideoLesson

  1. Lesson - Conditional Loops 
  2. Exercises - Conditional Loops

VT - MicrosoftDev - Loops - Demo

Nested Loops

 

  1. Lesson - Nested Loops
  2. counted loop exercises # 4, 6
  3. more counted loop exercises # 5
  4. Conditional Loops Exercises # 2, 3
 

Random Values

VideoLesson

  1. Presentation - Random Values
  2. Random Values Exercises
Advanced concept for further research:

Pseudorandom Number Generators


 

Methods in Python

Methods (Subprograms)

VideoLesson (Part 1)

VideoLesson (Part 2)

VideoLesson (Part 3)

Presentation - Methods (Subprograms) in Python - Part 1: Procedures Basics  -  Video Lesson

Presentation - Procedures with Parameters

Presentation - Functions 

 

VT - Socratica - Functions 

VT - MicrosoftDev - Functions - Demo

 

 

Arguments Presentation - Arguments and Keyword Arguments

VT - Socratica - KeyWord Arguments

VT - MicrosoftDev - Parameterized Functions - Demo

 

Advanced Topics:

   

 Advanced Concept for further research:

Using the Turtle Library to Design Logos

 

 

 
Sets
  • A set is used when order is not important 
  • Use = set( ) command to create one
  • .add( )        * add item to set
  • .clear( )       *empties out entire set
  • .remove( )   *only if element is in set
  • .discard( )   *ignores if element not in set 
VT - Socratica - Sets
Tuples
  • Used when order is paramount (Immutable - Won't change) 
  • Use parentheses and commas (a,b,c )  
  • Take up less memory than lists 
VT - Socratica - Tuples
Lists & Arrays

Presentation - Lists & Arrays in Python 

Lists:

  • Order is preserved but can be changed & sorted
  • Use square brackets and commas [a, b, c] 
  • Require more memory usage compared to tuples 

VT - Socratica - Lists

VT - MicrosoftDev - Collections - Demo

String Methods Presentation - Strings as Arrays & String Methods VT - String Operations 
Classes   VT - Socratica - Classes
MySQL with Python

What are relational Databases

Getting Started with MySQL in Python 

 

 

Raspberry PI with Python

Steps What to Install Description
1 Installing Python 3 Python Main Programming Language
Install PIP on Windows  Used to install other Modules like GUI 
3 Installing IDLE3 (All platforms explained) Integrated Development Learning Environment. It comes with Python 3 install. This will allow you to create standalone .py files
4 Creating GUIs in Python using guizero  
Usign tkinter to create a GUI application

 

Tutorial

6 Installing Modules & Packages VT - MicrosoftDev Modules and Packages

 

 

 

Comments (0)

You don't have permission to comment on this page.