Teachify Logo
Teachify
| Intro CS Tools /

Python Examples

Variables Math Print Input If Statements Loops Lists Functions Other Videos

Topics

Variables Math Print Input If Statements Loops Lists Functions Other
Videos

Videos

Intro

The four kinds of value A dictionary: values with labels
Naming variables
Math operators When the answer is a decimal Drop the decimal, or keep the remainder
Comparing two values Checking two things at once
Print a message Print a variable
Asking for text Asking for a number Watch out

Conditionals

Comparing two values Pick which code runs
Pick which code runs elif or separate ifs?
Pick which code runs
Checking two things at once
An if inside an if
Checking two things at once Is it between two numbers?

Functions

Define it, then call it
Define it, then call it Pass values in
Print a message Send a value back
Start everything from one place

Lists

Make a list
Get items Count items
Add items
Change items
Take things out

Loops

Repeat a set number of times
Loop with an index
Go through a list Two lists side by side Go through every item Line up columns
Number the items Two lists side by side
Repeat until something changes
Repeat until you say stop
Repeat until something changes
Repeat until you say stop

On this page

About Teachify

A modern platform designed to make computer science education more engaging and effective for both teachers and students.

Quick Links
  • Home
  • About Us
  • Contact
Legal
  • Privacy Policy
  • Terms of Service
© 2025 Teachify. All rights reserved.