Python Turtle Flashcards
What are the three programming constructs?
1) Sequence
2) Selection
3) Iteration
What types of loops are there?
There are two types of loops, the for loop and the while loop.
When do you use a for loop?
A for loop is used when you know how many times you want to iterate the code.
When do you use a while loop?
A while loop is used when you don’t know how many times the code will iterate.
What is a program?
A program is a detailed set of instructions telling a computer exactly what to do.
How can Python be used?
Python can be used for building websites, programming robots, scientific computing and games.
What is debugging?
Debugging is when a programmer finds bugs (errors) in their code and fixes them to improve the program.
Why are loops useful?
Loops can be very useful and can save a lot of time. Loops repeat the same or similar code a number of times.