Программирование аркадных игр и обучение информатике

Программирование аркадных игр
и обучение информатике

Download all these examples along with supporting files in a zip file: python_examples.zip.

Lab 16: Non-graphic Python Examples

Program that calculates miles-per-gallon. (Chapter 1)
Calculates the kinetic energy of an object. (Chapter 1)
Simple example if statements. (Chapter 3)
Simple example for loops. (Chapter 4)
Simple example while loops. (Chapter 4)
Simple example for encrypting text. (Chapter 7)
Simple example for decrypting text. (Chapter 7)

Creating an Installer

Python Pygame Installer Tutorial- Create an installer for your Python program. Allow other people to play your game too!

Searching and Sorting Examples

example_sorted_names.txt - Sample file of names used in searching_example.py

searching_example.py - Example linear and binary searches

property_check_examples.py - Check a list to find items that match a property

AliceInWonderLand.txt - Text of Alice In Wonderland. Source: Project Gutenberg



sorting_examples.py - Example code for the insertion and selection sorts.

File Examples

high_score.py - Example that shows how to read and write a high score to the disk so that it persists between program runs.

You are not logged in. Log in here and track your progress.