You are going to screenshot all of your work into a Powerpoint file.
To save your powerpoint go to: File explorer -> Year 9 Common Area:S -> You can save here -> Computer Science -> Term 1 -> Lesson5
Save the Powerpoint file: as your name
If we want to get some data from the user we can use pythons input, however if we want our input to be in a popup box we need to use some turtle code.
import turtle tim = turtle.Turtle() screen = turtle.Screen() screen.bgcolor("white") screen.title("User Input") # This is how we get user_input using a pop up box name = screen.textinput("Turtle Program", "Enter your name") #This is how we change the position of the text turtle.setposition(0, 0) #this is how we can write the text input to the screen turtle.write(name)
We can then style our text using the code below
style = ('Courier', 30, 'italic') turtle.write('Hello!', font=style, align='center')
Tick each task when you have successfully done it in the following list:
Tick each extension task when you have completed it in the following list:
import turtle def drawShape(sides): for x in range(sides): tim.forward(120) tim.left(360/sides) screen= turtle.Screen() screen.bgcolor("white") screen.title("Super Shapes") tim = turtle.Turtle() num_of_sides = 6 for myMove in range(8): drawShape(num_of_sides ) # Draw the shape with 'num_of_sides ' sides tim.left(360/8) wn.mainloop()
Lets look at the learning outcomes and decide which one best describes our current level of understanding :
Tick the one you feel is closest to your level