O GoConqr está de visual novo! Conte para nós o que você achou.

Mapa mental

Programming

monty adams Computer Science Inglês

Conteúdo do 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.

Informações

Descrição
Computer Science Mapa Mental sobre Programming, criado por monty adams em 24-05-2021.
Criado por
monty adams · mai 2021
Atualizado
7 jun 2021
Visualizações
2
Avaliação

Fale Conosco

Sobre o que é sua mensagem?

O que você acha do novo visual?

Você gostou?