100 likes | 178 Views
Python Coding Program on Trinket. By: Nina Chen & Nghi Nguyen. PYTHON. - Is a programming language software -Versatile -Easy to learn -Uses minimal lines code -Free and open sources (Trinket)
E N D
Python Coding Program on Trinket By: Nina Chen & Nghi Nguyen
PYTHON -Is a programming language software • -Versatile • -Easy to learn • -Uses minimal lines code • -Free and open sources (Trinket) -Used to create scripted language in numerous application from fundamental scripts to constructing websites and network security -Used to make pixelated games such as PAC-MAN -Many computers use this program (Raspberry Pi)
NGHI & NINA’S STORY • 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.
3rd Trinket https://trinket.io/python/75b5e3cdca?runMode=console
Debugging process • 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. • “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.
Debugging process con’t • 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. 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.
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/ (1ST PHOTO ) 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