
Using the trinket.io Python coding website, I designed a short interactive program in which "Shelly," an animated turtle, greets the program's viewer and moves around the screen. To start, I imported the "turtle" shape into my coding window and assigned that shape the name of Shelly; from then on, the computer could recognize each of the lines of code I wrote which directed the movement of "Shelly" through the "Shelly" label. I programmed Shelly to write her name and then set some basic movements for Shelly to make across the screen, and between these movements I used the "input" command to ask the user questions like "what is your name?" and incorporate their answers into Shelly's next written comment, which helped to make my program more interactive.
No comments:
Post a Comment