Logo TYP

  • Resources
    Overview Lessons Courses Challenges & Tutorials Code Snippet Library
  • Lessons
    What's on offer All Lessons
  • Contact
  • Login
  • Signup




Welcome

00 Intro user input print

  • 01-Print text to screen.py
  • 02-Get User Input as String.py
  • 03-Get User Input as Integer.py
  • 04 How to set things up in a function.py
  • 05-Chatbot task beginning.py
  • 06-Use of Variables and defining input.py
  • 07-Take user input as variable and print.py
  • 08-Allow a new line to be printed.py
  • 09-Use of Prompt to take user input.py
  • 10-Print a single star.py
  • 11-Printing to different lines or same line.py.py
  • 12 Neat formatting string output.py

01 Variables Operators

  • 01 -Use of Variables in a simple chatbot.py
  • 02-Convert to Integer - alternative method.py
  • 03-Use of Modulo Operator %.py
  • 04-Convert to Float.py
  • 05-Modulo Magic - alternative method.py
  • 06-Operators example 1.py
  • 07-Operators example 2.py
  • 08-Operators example 3.py
  • 09-Use of Boolean Variables.py
  • 10-Trying to add a string and integer.py
  • 11-Rounding up floating point numbers.py
  • 12-Rounds a decimal to two places.py

02 If Elif Else Selection

  • 01-Use of the if else statement.py
  • 02-Use of if and else using boolean expressions.py
  • 03-Use of if and elif example.py
  • 04-Password checker solution.py
  • 05-Check for age with password checker.py
  • 06-Verify username and password.py
  • 07-A Nested IF ELSE example.py
  • 08-Nested IF ELIF example.py
  • 09-Selection with and or built in.py
  • 10-Selection without ifs demo of DeMorgan's Laws.py

03 While Loops

  • 00 While Loop Introduction.py
  • 01-While Loop Simple Example.py
  • 02-Demo while loop for loop do the same thing timestableapp.py
  • 03-Username and password checker using loops.py
  • 04-Validation of password creation using loops.py
  • 05-While Loops using Boolean Flags.py
  • 06-While Loops with multiple statements.py
  • 07-While Loop infinite loop.py
  • 08-Use of break to end an infinite while loop.py
  • 09-Use of continue statement in a while loop.py
  • 10-Sentinel controlled while loop.py

04 For Loops

  • 01 - two lots of 10 stars.py
  • 02 - one line of 10 stars and one line of 10 planets.py
  • 03 - 10 x 10 matrix of stars.py
  • 04-matrix of stars 3x20.py
  • 05-matrix of planets 5 x 5.py
  • 06 -similar planets on same row.py
  • 07-similar planets on same column.py
  • 08-Triangular Planetary Alignment.py
  • 09 - Solution for user defined box.py
  • 10 For Loop Guess the Number.py
  • 11 Solution User input ForLoop Times table.py
  • 12- stars horizontal use of default end statement.py
  • 13 For Loop password challenge.py
  • 14-Break statement Example 1.py
  • 15-Break statement Example 2.py
  • 16-Creating a Running Total initialisation.py
  • 17-Fibonacci Sequence.py
  • 18-For Loop print 1 to 10 while loop.py
  • 19-For Loop with a list.py
  • 20-ForLoop Searching a dictionary.py
  • 21-ForLoop Searching Phone directory Lists.py
  • 22-List, user input, For Loop Program.py
  • 23-Loop through words and lists for loop.py
  • 24-matrix of stars 20 x 20.py
  • 25-Nested Loop Example.py
  • 26-Nested Loop times table creator.py
  • 27-Nested Loops running totals code.py
  • 28-Print 10 stars Vertical -default.py
  • 29-Three times table solution.py.py

05 Local Global Variables

  • 01-Function Local global total variables.py
  • 02-Two functions local global scope example.py
  • 03-Score Variable incrementing.py
  • 04 Demonstrating the scope of a variable.py

06 Functions

  • Fahrenheit to celsius using functions program.py
  • Find Factorial using Function return feature.py
  • Find area of rectangle using functions inputPRompt.py
  • Function Local global total variables.py
  • Function multiple parameter passing.py
  • Function pass parameter byRef.py
  • Function string parameter passing.py
  • Functions guess password.py
  • Pass name numbers functions return statement.py
  • Simple Calculator using Functions.py
  • Two functions local global scope example.py
  • afterlife adventure functions loops selection.py
  • lots of functions.py
  • with function username and password.py

07 Lists Tuples ListComprehension

  • 1-Intro to Lists.py
  • 2-Personality Predictor app lists.py
  • 3 List of people given assigned weapon.py
  • 3a Solution Nested List Matrix Game.py
  • 3b Solution Extension Nested List Matrix Game.py
  • 3c Product search create basket.py
  • Append to List Example.py
  • Contacts New Edit Delete Lists.py
  • List of subjects and teachers Search by Index.py
  • List, user input, For Loop Program.py
  • List timestable solution.py
  • List using Enumerate.py
  • Lists ASCII ListComphrension vs ForLoop.py
  • Lists example programs creATE these PROGRAMS.pptx
  • Loop thru list Subjects search return Index.py
  • Looping through list.py
  • Matrix ListComphrension UserInput SolutiontoChallenge.py
  • Modulo Magic using Lists give day numberofdays return Dayofweek.py
  • Mycontacts slice delete.py
  • Random Generation from List.py
  • Random Generation from List Random Numbers.py
  • Sack a teacher app Remove from list operation.py
  • Search list Return IndexNo.py
  • Sorting List.py
  • Sorting List 2 Numbers.py
  • caesar cipher with main menu decrypt encrypt.py
  • find differences in list.py
  • generate random item from list.py
  • loop over two lists simulatenously.py
  • remove duplicates from list.py

08 String Manipulation

  • Capitalising first letter.py
  • Check for upper lower case in strings.py
  • Join Strings together concatenate.py
  • Return length of string.py
  • String formatting.py
  • Working with a really long string.py
  • convert strings to upper case Lowercase.py
  • find certain word in sentence.py
  • find repeated characters in string.py
  • is String decimal.py
  • is String letters numbers only.py
  • login using file handling strip split.py
  • see if string starts with letter.py
  • splitting a word on white spaces.py
  • string manipulation accessing.py
  • string manipulation updating.py
  • strip characters or blank spaces from strings.py
  • strip split join csv method file read.py
  • thingswithstrings formatting.py

09 Dictionaries Sets

  • 01-Creating a Dictionary.py
  • 02-Accessing Values in Dictionary.py
  • 03-Adding Values to Dictionary.py
  • 04-Updating Editing Values in Dictionaries.py
  • 05-Deleting elements entries in dictionary.py
  • 06-Print all keys in dictionary.py
  • 07-Print all values in dictionary.py
  • 08 Dictionaries Intro registration feature.py
  • 09-Dictionaries course teacher finder.py
  • 10 Create new dict from given keys.py
  • 11-Print keys and values in dictionary.py
  • 12 Find length of dictionary.py
  • 13-See if key exists in dictionary simple.py
  • 14 If Key does not exist.py
  • 15-See if key exists in dictionary.py
  • 16 Counting values in a Dictionary.py
  • 17 Combine two lists into a Dictionary].py
  • 18 Create two lists from a Dictionary.py
  • 19 Create nested dictionary many values.py
  • 20 Nested dictionary nested loops.py
  • 21 Looping over Dictionary.py
  • 22 Looping Over dictionary in order.py
  • 23 Looping User Input Dictionary Full Program.py
  • 24 - Minecraft Game starter Dictionaries.py
  • 25- Minecraft Game crafting options added.py
  • 26-Copying a Dictionary.py
  • 27-Iterating over a dictionary.py
  • 28-Full Solution Football Club.py
  • 29 Merging two dictionaries.py
  • 30 add multiple values from list to dictionary.py
  • 31 Is Dictionary full or empty.py
  • 32 Sorting a dictionary.py
  • 33 Copy a dictionary.py
  • 34 Counting Max Value-In Dict.py
  • 35-ForLoop Searching a dictionary.py
  • 36-Creating Dictionaries From Lists.py
  • 37-Dictionaries simple example intro.py
  • 38-Dictionary example footballclubs.py
  • 39-Dictionary examples operations super pog.py
  • 40-Dictionary inside Dictionary example.py
  • 41-Merging Dictionaries update method.py
  • 42-Minecraft Game starter Dictionaries.py
  • 43-Print Dictionary plain and simple.py
  • 44-Quiz feature using dictionaries.py
  • 45-Search for value in nested dictionary which contains multiple values.py
  • 46-Write a dictionary to text or csv file.py
  • 47 Read file contents into dictionary strip split using regex.py
  • 48 Read file contents into dict alternative.py
  • 49 Find mean average of dictionary values.py
  • 50 login with username password using dictionary method.py

10 File Handling Read Write Search Edit

  • 01-Open a file and read characters.py.py
  • 02-Check current pointer position in file.py.py
  • 03 remove white spaces and newlines when reading into list.py
  • 04-Read whole file contents in one go.py.py
  • 05-Read one character from file.py.py
  • 06-Read all characters one by one from file.py.py
  • 07-Read all characters one by one BETTER METHOD.py
  • 08-Reading a single line from file.py
  • 09-Reading several lines from file.py
  • 10-Strip newlines whitespace while reading in file.py
  • 11-Reading all lines at once.py.py
  • 12-Reading particular columns from file.py.py
  • 13-Reading columns alternative method.py.py
  • 14-Read tell seek for reading file.py
  • 15 Search in list return value with error.py
  • 16 Search in list return value with error -Fixed(strip lines AND spaces).py
  • 17-Re position the pointer at the start of file.py.py
  • 18 Search for field return next column's field.py
  • 19 Search using CSV.py
  • 20 Search using CSV not found feature added.py
  • 21-Add Write a new user to file solution.py
  • 22-Quiz Program Save scores to a text file.py.py
  • 23 Editing a record based on field.py
  • 24-Deleting a record based on user specified field.py
  • 25-Creating a copy of a file.py.py
  • 26-Search for the existence of a file.py.py
  • 27-Simple writing to a file.py
  • 28 Copy a file.py.py
  • 29 Simple Append text to a file.py.py

11 Arrays

12 Sorting Methods

13 Classes and Objects

  • Add Pong Bat class.py
  • Bat Movement.py
  • Change Starting Direction.py
  • Class Attributes.py
  • Class Methods.py
  • Create a Class.py
  • Create a ball class.py
  • Create bouncing ball movement.py
  • Make the ball move up.py
  • Right left screen collision detection.py
  • Set Up Game Canvas.py
  • Setup main animation loop.py
  • bat ball collision detection.py

Full Programs step by Step

  • Creating an Arithmetic Quiz
  • Form Tutor Management System
  • Netflix type System demo
  • RollDice Matrix Game

Incrementation Examples

Main Menu examples

Passing Parameters

  • Fahrenheit to celsius using functions program.py
  • Function multiple parameter passing.py
  • Function pass parameter byRef.py
  • Function string parameter passing.py
  • Pass name numbers functions return statement.py

Program Examples

  • Creating an Arithmetic Quiz
  • Quiz Part 1 Create Variables RandomQuestion user response.py
  • Quiz Part 2 Check User's response ask for user name.py
  • Quiz Part 3 Validate User's name.py
  • Quiz Part 4 Calculate Score.py
  • Quiz Part 5 Put it in a function.py
  • Quiz Part 6 Save scores to text file.py
  • gameofLife tkinter.py
  • snake game tkinter.py
  • webbrowser tkinter.py

Pygame Game examples

Python and SQLite

  • 1-Connect to database Create a table.py
  • 10 Count rows.py
  • 11 Find Max Value.py
  • 12 Calculate Average.py
  • 13 Calculate SUM.py
  • 14 Login username password.py
  • 2-Add Records to table.py
  • 3 Fetch and display records.py
  • 4 Update database records.py
  • 5 Delete Records.py
  • 6 Search by condition where clause.py
  • 7 Search for key phrase.py
  • 8 Sorting in SQLite.py
  • 9 Search and return selected fields.py
  • The Site for Data Sets.url

Randomness Random numbers

Recursion

  • Python - Recursion Mystery Function Calling with parameters.py
  • Python - Recursive Function example.py
  • Python - Recursive Function example Final Solution.py
  • Python - Recursive Function example solution.py
  • Recursion.py
  • Recursion2.py

Validation examples

  • Validation password creation solution.py


About

Our resources

Upcoming Tutorials

Facebook

TeachingComputing.com

Contact

Privacy Policy

Terms of Use

© TeachYourselfPython By www.TeachingComputing.com