Python Tutorial

Management System in Python - #1 - Main Menu & Adding Users

Submitted by Yorkiebar on
Introduction: In this tutorial we will begin making a local user management system in Python. We have done this before in a simple SQLite database, but this series will be storing the information in simple plain text files ready for editing manually and portable safe. The Main System: First we want to create a main function which will be our menu system. The user will loop around this until they enter "0" to exit the program.

How to Create a User Management System in Python Using SQLite

Submitted by Yorkiebar on
Introduction: This tutorial is on how to create a user management system in Python using SQLite. The Database: First we need to create the database to store the information, to do this open CMD (on Windows) and type cd followed by your SQLite installation path, mine is:
  1. cd /d G:

How to Create a Simple Calculator in Python

Submitted by Yorkiebar on
Introduction: This tutorial is on how to create a simple calculator in Python. The Theory: Here's how the program will be structured: Get the users first number Get the users second number Get the users action Use if statements to perform the calculation Print out the result Getting The Users Numbers: First we want to get the users two numbers to calculate together somehow.

How to Create a Rock Paper Scissors Game in Python

Submitted by Yorkiebar on
Introduction: This tutorial will be covering how to make a simple rock, paper, scissors game in Python. How It Works: First we get the user choice through input. Then we generate a random number 1 through 3. Convert the random number to rock, paper or scissors. Output the comparison result. Imports: To generate a random computer choice we need to import the random module...

How to Create a Text Explorer Game in Python

Submitted by Yorkiebar on
Introduction: This tutorial will cover how to create a simple text based exploration game. How It Works: What we are going to do is; Give the user instructions. Show the current place where the user is within the game. Give the user options. Take them in the direction they enter. Restart loop from step 3. The Instructions: So the first thing we do is give the user instructions on how to play the game...

How to Create a Guess My Number Game in Python

Submitted by Yorkiebar on
Introduction: This tutorial is on how to make a guess my number game in Python. The Game: This is a simple game where the computer chooses a random number, then the player has a certain amount of guesses to guess the correct number by following the feedback (too high, or too low). The Imports: First we need to import the random module to let the computer choose a random number...