Below is the Powerpoint
Python is a programming language software that is used to create scripted language in numerous application from fundamental scripts to constructing websites and network security. Python is also used to make pixelated games such as Pac Man. Many computer programs also use Python programming, such as our mini computer Raspberry Pi. Further, Python is one of the simplest, self-explanatory forms of coding that you can do on a Trinket, which lets you write and run codes in any browser. In all, Python is versatile, easy to learn and uses minimal lines of codes, and free and open sources.
Our project is combining three different Python program codes into our own storyline gameplay on Trinket. We first look into the various Trinket programs from an introductory Python Trinket guide and combined some parts to make our own storyline of two turtle friends making a picture together. The three trinkets we used from the Introductory Python Coding trinkets are called, “Tina and Tommy Colors”, “A picture with Tina and Tommy”, “Going in Circles”. Our group was very interested in Python Programming and wanted to do more than just the Python Turtle Race lab done in class. Especially since Python Programming is the basics of pixel games, however, creating a whole game would be too complex so we decided to try something else like a drawing.
The most complicated part was the debugging process. Each Python Program did have a code guide but that introductory Python Trinket guide was pretty old, so some commands have changed over time and we had to figure that out. We also had many other debugging processes. Such as the command, turtle.Turtle() did not run because it was outdated and instead we used just Turtle(). Import turtle is also an outdated command, so we must use the command “from turtle import *”. Combining three different Trinket codings into one was difficult because it did not combine in “Run” mode rather it only worked in “Console” mode. At first “Console” mode did not void the first Trinket codings because we forgot to void using the hashtag(#). Combining the third trinket with our other two trinkets was the most complicated. The Third Trinket, when we ran the codes at first there were no colors but then we added the code: nghi.color(‘magenta’) to give the sketches some color. The original codes of the third Trinket of “A Visual Introduction to Python” was not what we wanted so we changed some of the codes. For instances, the shape of the eyeballs was uneven with one eyeball being smaller than the other, and we wanted even eyeballs so we had to figure out which part of the code is which circle and changed the numbers around constantly. We couldn’t figure out how to integrate our turtles in creating one image together. For our third Python coding, we wanted one turtle to create the outline of the pictures and the other to fill in the colors. However, it did not work as we wanted to on the first try, we had to constantly add and remove codes to make it work. We added the write command codes to our turtles to let the audience see the conversation between the turtles so they’ll know which turtle is going to do what and understand the picture a bit better.
Coding Process
https://trinket.io/python/75b5e3cdca?runMode=console
from turtle import * (Is to start the program)
nghi = Turtle()
nghi.shape(‘turtle’) (Shape of turtle)
nghi.color(‘magenta’) (Color of turtle)
nghi.left(90) (Direction and axis distance)
nghi.forward(100) (Direction and axis distance)
nghi.write(“Hi! I’m Nghi :D”) (The turtle will write, basically it’s own speech bubble)
nghi.forward(20) (Direction and axis distance)
nghi.right(90) (Direction and axis distance)
nina = Turtle()
nina.shape(‘turtle’)
nina.color(‘purple’)
nina.right(90)
nina.forward(100)
nina.write(“Hai! I’m Nina!”)
nina.forward(20)
nina.left(90)
#————————— (# to void)
#nghi = Turtle()
#nghi.shape(‘turtle’)
#nghi.color(‘magenta’)
#nghi.left(90)
#nghi.forward(100)
#nghi.write(“Hi! I’m Nghi :D”)
#nghi.forward(20)
#nghi.right(90)
#nina = Turtle()
#nina.shape(‘turtle’)
#nina.color(‘purple’)
#nina.right(90)
#nina.forward(100)
#nina.write(“Hai! I’m Nina!”)
#nina.forward(20)
#nina.left(90)
#————————-
from turtle import *
nghi = Turtle()
nina = Turtle() (Putting in a turtle)
nghi.color(‘magenta’) (Color of turtle)
nina.color(‘purple’)
nghi.shape(‘turtle’)
nina.shape(‘turtle’)
nghi.begin_fill() (Basically it will fill the box drawn with a color)
nghi.goto(200,0) (An axis point for the turtle to go to)
nghi.goto(200,-200) (An axis point for the turtle to go to)
nghi.goto(-200,-200) (An axis point for the turtle to go to)
nghi.goto(-200,0) (An axis point for the turtle to go to)
nghi.goto(0,0) (An axis point for the turtle to go to)
nghi.end_fill() (To stop the filling)
nina.penup() (Raises a ‘pen’)
nina.goto(-70,100) (An axis point for the turtle to go to to start)
nina.write(“Nghi!! Let’s Make a picture together!”) (Speech)
nina.goto(0,50) (An axis point for the turtle to go to to start)
nina.pendown() (Putting the ‘pen’ down to start making something)
nghi.penup() (Raises pen to stop drawing)
nghi.color(‘white’) (Color of Nghi in her Magenta box)
nghi.goto(-40,-100)
nghi.write(“Alright, I’m ready!!”)
nghi.goto(0,-130)
nghi.pendown()
#————————– (# to void)
#nghi = Turtle()
#nina = Turtle()
#nghi.color(‘magenta’)
#nina.color(‘purple’)
#nghi.shape(‘turtle’)
#nina.shape(‘turtle’)
#nghi.begin_fill()
#nghi.goto(200,0)
#nghi.goto(200,-200)
#nghi.goto(-200,-200)
#nghi.goto(-200,0)
#nghi.goto(0,0)
#nghi.end_fill()
#nina.penup()
#nina.goto(-70,100)
#nina.write(“Nghi!! Let’s Make a picture together!”)
#nina.goto(0,50)
#nina.pendown()
#nghi.penup()
#nghi.color(‘white’)
#nghi.goto(-40,-100)
#nghi.write(“Alright, I’m ready!!”)
#nghi.goto(0,-130)
#nghi.pendown()
#————————– (# to void)
from turtle import *
nghi = Turtle()
nghi.shape(‘turtle’)
nghi.color(‘magenta’)
nina = Turtle()
nina.shape(‘turtle’)
nina.color(‘purple’)
nghi.write(“I’ll sketch it!”) (Speech)
nghi.penup() (Starting to draw)
nghi.goto(30,-150) (Moves to a certain axis)
nghi.pendown() (Starts drawing)
nghi.circle(130) (Make a circle with a diameter of 130)
nghi.penup() (Finished drawing)
nghi.goto(0,0) (An axis point for the turtle to go to)
nghi.pendown() (Pen back down to draw)
nghi.circle(30) (Make a circle with a diameter of 30)
nghi.circle(20) (Make a circle with a diameter of 20)
nghi.penup()
nghi.forward(60) (Moving 60 over)
nghi.right(45) (Moving 45 right)
nghi.pendown() (Draws again)
nghi.circle(30) (Another circle with a diameter of 30)
nghi.circle(20) (Another circle with a diameter of 20)
nghi.penup()
nghi.right(90) (Moving right by 90)
nghi.forward(90)
nghi.pendown()
nghi.circle(40) (Big circle of a 40 diameter)
nghi.penup()
nghi.goto(25,-25)
from turtle import *
nina = Turtle()
nina.shape(‘turtle’)
nina.color(‘purple’)
nghi = Turtle()
nghi.shape(‘turtle’)
nghi.color(‘magenta’)
nina.write(“I’ll color it!”) (Speech)
nina.penup()
nina.begin_fill() (Filling in the circle)
nina.color(‘pink’) (Circle is filled with the color of pink)
nina.goto(30,-150) (An axis point for the turtle to go to)
nina.pendown()
nina.circle(130)
nina.penup()
nina.end_fill() (Stop filling)
nina.color(‘white’) (Changing color to change the color I’m about to fill)
nina.goto(0,0)
nina.begin_fill() (Filling in a space with color again)
nina.pendown()
nina.circle(30)
nina.penup()
nina.end_fill() (Stop filling)
nina.begin_fill()
nina.color(‘black’)
nina.pendown()
nina.circle(20)
nina.penup()
nina.end_fill()
nina.forward(60)
nina.right(45)
nina.begin_fill()
nina.color(‘white’)
nina.pendown()
nina.circle(30)
nina.penup()
nina.end_fill()
nina.begin_fill()
nina.color(‘black’)
nina.pendown()
nina.circle(20)
nina.penup()
nina.end_fill()
nina.right(90)
nina.forward(90)
nina.begin_fill()
nina.color(‘purple’)
nina.pendown()
nina.circle(40)
nina.penup()
nina.end_fill()
nina.goto(25,-25)
nina.color(‘purple’)
Information Literacy
A Visual Introduction to Python. (n.d.). Retrieved from https://hourofpython.trinket.io/a-visual-introduction-to-python#/welcome/an-hour-of-code
A Visual Introduction to Python. (n.d.). Retrieved from https://hourofpython.trinket.io/a-visual-introduction-to-python#/multiple-turtles/tina-and-tommy-s-colors
A Visual Introduction to Python. (n.d.). Retrieved from https://hourofpython.trinket.io/a-visual-introduction-to-python#/put-it-all-together/a-picture-with-tina-and-tommy
A Visual Introduction to Python. (n.d.). Retrieved from https://hourofpython.trinket.io/a-visual-introduction-to-python#/turtles/going-in-circles
Welcome to Python.org. (n.d.). Retrieved from https://www.python.org/
What is Python? (n.d.). Retrieved from https://www.pythonforbeginners.com/learn-python/what-is-python/
WHY LEARN PYTHON? (n.d.). Retrieved from https://www.codingdojo.com/what-is-python-programming