GoConqr has a new look! Let us know what you think.

Flashcards

Untitled

Charlotte Chandler Computing Year 8 English 13 cards

Cards in this deck (13)

  1. 1ProgrammingProgramming is simply providing instructions to a computer to solve a problem
  2. 2Problem SolvingThe main skill that programming requires is problem solving
    Often we don’t know how to solve the problem, but we know how to make a start – getting things wrong then trying something different is a big part of it.
  3. 3PythonPython is a programming language
    Instructions are written using Python, which the computer then executes
    Python is one of the most widely used programming language and is supported on nearly every device
  4. 4penup()tells the turtle to stop drawing, so it can be moved about without leaving a line
  5. 5pendown()tells the turtle to start drawing, so lines can be created
  6. 6pencolor()can be used to change the colour of the line that is drawn by the turtle
  7. 7fillcolor("colour") begin_fill() end_fill()The fill colour is set with fillcolor()
    Only shapes drawn between begin_fill() and end_fill() will be coloured in
  8. 8Pattern RecognitionOne of the principals of computational thinking is pattern recognition.
    If we can spot a repeating pattern in our code, there is usually a way to make it more efficient
  9. 9LoopsWhen we spot a repeating pattern, we can use a loop to make the code repeat, rather than typing it out multiple times
    To loop code n times, we use the code,
    for x in range(n):
  10. 10ProcedureWe can define a procedure using the def command
    We can define a procedure anywhere in the code, as long as it’s defined before it’s used
    The code shown defines a procedure called “drawPentagon()”, which is used later in the program
  11. 11basic codeimport turtle
    sc = turtle.Screen()
    kevin = turtle.Turtle()
    kevin.right(144)
    kevin.forward(200)
    kevin.right(144)
    kevin.forward(200)
  12. 12loop codeimport turtle
    sc = turtle.Screen()
    kevin = turtle.Turtle()
    for x in range(2) :
    kevin.right(144)
    kevin.forward(200)
  13. 13procedure codedrawpentagon()
    kevin.penup()
    kevin.goto(20,20)
    kevin.pendown()
    drawpentagon()
    kevin.penup()
    kevin.goto(20,-20)
    kevin.pendown()

Information

Description
Year 8 Computing Flashcards on Untitled, created by Charlotte Chandler on 24/05/2021.
Views
0
History
  • Created by Charlotte Chandler · May 24, 2021
  • Copied by Charlotte Chandler · May 24, 2021
  • Copied by Charlotte Chandler · May 24, 2021
Rating

Feedback

What is it about?

What do you think of the new look?

How do you like it?