Karteikarten
FLASH CARDS VERY IMPOTANT
Karten in diesem Stapel (7)
- 1programmingProgramming is simply providing instructions to a computer to solve a problem
- 2how turtle worksimport turtle
wn = turtle.Screen()
daisy = turtle.Turtle() - 3penup () and pendown()penup() tells the turtle to stop drawing, so it can be moved about without leaving a line
pendown() tells the turtle to start drawing, so lines can be created - 4pencolor()pencolor() can be used to change the colour of the line that is drawn by the turtle
- 5fillcolor(), begin_fill() and end_fill()tells what colour to fill in and when to start also when to end
- 6LoopsWhen we spot a repeating pattern, we can use a loop to make the code repeat, rather than typing it out multiple times
eg: for x in range(n): - 7ProcedureThe code would be much simpler if we could simply tell it to “draw a pentagon” instead of typing out the loop every time
Informationen
- Beschreibung
- Karteikarten am FLASH CARDS VERY IMPOTANT, erstellt von Vili Koroibulileka am 24/05/2021.
- Erstellt von
- Vili Koroibulileka · Mai 2021
- Aktualisiert
- 7 Jun 2021
- Aufrufe
- 24
- Bewertung