¡GoConqr estrena diseño! Cuéntanos qué te parece.

Mapa mental

Programming

monty adams Computer Science Inglés

Contenido del mapa

Programming

  1. Programming is simply providing instructions to a computer to solve a problem

  2. The main skill that programming requires is problem solving

  3. Import turtle

    • wn = turtle.Screen()
      • daisy = turtle.Turtle()
        • These three lines of code are essential. Without them the code will fail.
  4. daisy.forward(150)

    • Name followed by dot and instruction then brackets and the amount of pixels.
    • daisy.left(90)
      • daisy.right(90)
        • Basic movement commands
          • Also include goto(coorodinates)
            • turtle.pensize()
              • turtle.widthe()
            • daisy.goto(300,-300)
  5. daisy.penup()

    • daisy.pendown()
      • Allows pen to be lifted to correct location without drawing and then put back down again
  6. daisy.pencolor("red")

    • makes pen a certain colour and when you want to change the colour you reinsert this line of code with a different colour in the brackets.
  7. daisy.fillcolor("yellow")

    • fills in the inside of an object with that colour. Also changeable
    • Before filling needs the line of code daisy.begin_fill()
    • After fill is complete the line daisy.end_fill() is required.
  8. For x in range(5):

    • daisy.forward(200)
      • daisy.left(72)
        • This line of code is repeated however many times is in the bracket to make a shape quicker.
  9. We can use procedures to make more efficient code.

    • DrawPentagon can be used
      • def drawPentagon():
        • for x in range(5):
          • daisy.forward(200)
            • daisy.left(72)
              • This code is now under drawPentagon so whenever drawPentagon is called up it will do what the code at the start says.
      • Always put any new procedures at the top of the code.

Información

Descripción
Computer Science Mapa Mental sobre Programming, creado por monty adams el 24/05/2021.
Creado por
monty adams · may 2021
Actualizado
7 jun 2021
Visitas
2
Valoración

Escríbenos

¿Sobre qué es tu mensaje?

¿Qué te parece el nuevo diseño?

¿Te gusta?