ERICA ANDREWS
ABOUT
Python This website was created in order to display a table of contents for Python Projects. The following programs are a summary of completed programming exercises that can be tested in Integrated Development Environments such as IDLE or PyCharm.
Animated Game This program creates an animated game that allows the user to interact with left and right keys in order to stop a moving object from passing a displayed bar. As long as the user does not allow the moving object to pass a displayed bar, the game will continue. Once the moving object passes the displayed bar, the game is over. This program was completed with Python.
Car Graphics This program creates graphics that displays a drawing from a moving arrow that prints a box car, created using Python's 'Turtle Pen' function. This program was completed with Python.
Arrow Graphics This program creates graphics that displays a drawing from a moving arrow that prints two horizontal lines, using Python's 'Turtle Pen' function. This program was completed with Python.
Circle Graphics This program creates graphics that displays two drawings from a moving arrow that prints a green circle and a yellow circle, using Python's 'Turtle Pen' function. This program was completed with Python.
Animation This program creates two animations that display a moving arrow with horizontal movements and diagonal movements, using Python's 'Tkinter Canvas'. This program was completed with Python.
Box Graphics This program creates graphics that displays a drawing from a moving arrow that prints four lines creating a lined box with no joints, using Python's 'Turtle Pen' function. This program was completed with Python.
Star Graphics This program creates graphics that displays a drawing from a moving arrow that prints a sun-like, star graphic, along with an eight-pointed star graphic, a detailed, sun-like star graphic with many points, a nine-point star graphic, a spiral star graphic, and a nine-point star graphic with color, using Python's 'Turtle Pen' function. This program was completed with Python.
Triangle Graphics This program demonstrates different types of triangle graphics, using Python's 'Tkinter Canvas'. Predrawn triangle graphics, from a burst of seamless, patterned triangles to a moving triangle along the walls of the canvas. This program was completed with Python.
Square Graphics This program creates graphics that displays a drawing from a moving arrow that prints squares within squares and various square graphics, using Python's 'Turtle Pen' function. This program was completed with Python.
Isosceles Graphics This program creates graphics that displays a drawing from a moving arrow that prints a lined isosceles triangle, using Python's 'Turtle Pen' function. This program was completed with Python.
Octagon Graphics This program demonstrates a graphic display of an octagon, drawn with and without color, from a moving arrow, using Python's 'Turtle Pen' function. This program was completed with Python.
Pitch Fork Graphics This program demonstrates a drawn pitch fork, from a moving arrow, using Python's Turtle Pen Function. This program was completed with Python.
Text Graphics This program creates a graphic text display of different fonts, using Python's 'Tkinter Canvas'. For a bit of Typography for the viewer, this canvas can be used to create a variety of font displays. This program was completed with Python.
Three Turtle Pen Graphics This program illustrates, from a moving arrow, three of Python's Turtle Pen graphics, using Python's Turtle Pen Function. This program was completed with Python.
Coins This program calculates a puzzle based on multiplying coins. The user begins with twenty coins and gains ten coins every day after the initial coins for a year. The user also has three coins every week stolen within that year. This program calculates how many coins the user will have left. This program was completed with Python.
Ninjas This program prints strings in a puzzle that calculates whether a value assigned to a total will display a print statement. This program was completed with Python.
Earth This program calculates the user’s “moon weight” for every year within sixteen years. Based on the user’s “earth weight”, the puzzle uses a loop to display the calculated moon weight. This program was completed with Python.
Moon This program calculates the user’s “moon weight” for every year within sixteen years. Based on the user’s “earth weight”, the puzzle uses a loop to display the calculated moon weight. This program was completed with Python.
Things This program creates a puzzle that creates a “dancing” character. The character is given a set of assigned movements and a name. Once the characters name is called, the set of assigned movements is displayed. This program was completed with Python.
Message This program creates a puzzle that allows the user to discover hidden messages. This puzzle allows the user to create a string that hides a message by combining two strings. The user discovers the “hidden” message by splitting the words within the string. Once the user has split the string, the program displays the puzzles hidden message within a print statement. This program was completed with Python.
Animals This program creates a puzzle that creates a class to develop an animal. The class gives the animal a species, a number of legs and a color. This puzzle copies this class to create four animals. This program was completed with Python.
Guess This program creates a puzzle that creates a guessing game that allows the user to guess a number. The user enters a number, between a range of one and one hundred, to guess the puzzles guess. The puzzle displays whether the user should guess a number that is higher or lower than the guess entered. When the user’s guess equals the puzzles guess, the puzzle displays a print statement that the user has guessed correctly. This program was completed with Python.
Tuple This program shows a simple demonstration on how to apply Python's tool Tuple. This collection can be used as an 'array type' using list with Python. Note that Tuples are unchangeable, ordered, and can be used in loops, if statements, different types of functions, assigned to variables or to print statements. This program was completed with Python.
Absolute Function This program creates several ways to practice with the Python tool Absolute. The Python tool absolute is demonstrated with positive and negative integers, and if and else statements. This program was completed with Python.
Boolean Testing This program creates several ways to test a boolean with values such as integers, blanks, 'none', decimals, negatives, blank prints, letter prints, lists, maps, and user inputs. This program was completed with Python.
Defined Function This program creates different ways to apply the Python tool for Defined Functions. The function is applied to display a dear letter, returned variables multiplied, and an if and else statement. This program was completed with Python.
Class Method This program creates a class in order to create an animal with spots. The class allows the user to test different amounts of spots and print these spots using a class and Python's def keyword. This program was completed with Python.
Combine Lists This program creates lists and a combination of lists using simple code with Python. With variables and print statements, the lists created are printed along with the combination of the lists. This program was completed with Python.
Drawing An Arc Graphics This program creates graphics that displays a diagonal line, using Python's 'Tkinter Canvas'. This program was completed with Python.
Diagonal Line Graphics This program creates graphics that displays step-like lines that end in the form of a oval, using Python's 'Tkinter Canvas'. This program was completed with Python.
Pitch Fork Graphics This program demonstrates a drawn pitch fork, from a moving arrow, using Python's Turtle Pen Function. This program was completed with Python.
Polygons Graphics This program displays a few polygons, using Python's 'Tkinter Canvas', of pre-drawn graphics. This program was completed with Python.
Rectangle Graphics This program demonstrates different types of rectangle graphics, pre-drawn and drawn from an arrow, using Python's Turtle Pen Function and Python's 'Tkinter Canvas'. This program was completed with Python.
Pickle This program demonstrates how to create a file using Python's tool Pickle by demonstration of creating content, saving and closing a file with this content, and then reopening the file saved to display its content. This program was completed with Python.
If Statements This program creates several ways to apply if statements with Python. This program was completed with Python.
Eval This program creates different expressions with the Python tool Eval to display simple expressions, call methods, execute functions, and reference variables. This program was completed with Python.
Functions With Parameters This program creates several ways to apply functions with parmeters with Python tool Def. This keyword is used to create or define functions and can be used to define a global function, a class method, and other specific types of methods for a class. This program was completed with Python.
Exec This program creates a small program with the Python tool Exec. This function accepts large blocks of code and executes a specified Python function. This program was completed with Python.
Keyword This program creates different ways to apply the Python tool Keyword. This language has a set of keywords that are reserved and cannot be used as variable names, function names and other identifiers. Note that keywords are case sensitive and define the syntax and structure of the language. This program was completed with Python.
Len This program creates several ways to apply the Python tool Len. This method is used to return the number of characters in a string, the number of elements in a list, and the number of items of an iterable. This program was completed with Python.
Lists This program shows several different ways to use Lists with Python. Lists can be used in a variety of ways, from simple to complex. The keyword del is applied in order to demonstrate how to delete elements from a list. This program was completed with Python.
Loops This program demonstrates a variety of ways to use Loops with Python. Majority of the loops shown are 'for loops', which can execute a set of statements at least once, if not specified or however many times specified. The 'while loop' is similar to the for loop, as long as the condition is true but requires relevant variables to be ready. This program was completed with Python.
SysStdinReadline This program uses Python's 'sys.stdin' object to read input, allowing the viewer to respond to a print statement. This file-like object calls a function in order to read lines that are entered from the user, with a response provided after input. This program was completed with Python.
SystemExit This program uses Python's 'sys.exit' object to exit a program. The function is simply entered and causes the current program to cease, exiting from Python. Note that this function should bring the user back to Python's console or commmand prompt. This program was completed with Python.
Map This program displays a demonstration of how to create a Map with Python. This function allows to execute each item in the iterables of the map by returning a list of the results after applying the function to each item. The keyword 'del' is used to demonstrate how to delete from a map as well as ways to print and change values from the map. This program was completed with Python.
Max This program shows different ways to apply Python's tool Max. This function is used to find the highest values of items and can be used to find the highest values of an items iterables or string values with alphabetic comparisons. This program was completed with Python.
Min This program shows different ways to apply Python's tool Min. This function is used to find the lowest values of items and can be used to find the lowest values of an items iterables or string values with alphabetic comparisons. Note that if the string values, with alphabetic comparisons, have symbols, such as commas, the results might print these symbols as the lowest value. This program was completed with Python.
Placeholder This program shows different ways to apply Python Placholders from assigning placeholders with variables to organizing a Dear John letter. This program was completed with Python.
Random This program shows different way of how to apply Python's tool Random. This function generates a random selection from a list or wherever it is applied. A random 'shuffle' may also be applied to a list or whatever it is applied, to generate more random choices. This program was completed with Python.
QuotesInStrings This program demonstrates how to print quotes in Python strings. Quotes are typically used to print the string itself and can confuse the compiler if applied within the string without using apostrophes. This simple program was completed with Python.
VariableSubstitution This program was created to show simple ways of variable substitutions with Python. Variables can be used in place of values and can be used with various mathematical tools as containers for storing data. This simple program was completed with Python.
© ERICA ANDREWS 2020