Convert algorithms 4 (Edexcel GCSE Computer Science): Flashcards
📚Flashcards
Practise the cards
12 cards from this deck
ShowHide
Practise the cards
12 cards from this deck
Count-controlled loops definition
Count-controlled loops definition
Loops that run for a fixed number of times, known in advance
Python syntax for count-controlled loops
Python syntax for count-controlled loops
for...in range()
Key predictability of count-controlled loops
Key predictability of count-controlled loops
Know exact iteration count before loop starts
Flowchart symbol indicating loop structure
Flowchart symbol indicating loop structure
Backward arrow
Does range() include or exclude end value?
Does range() include or exclude end value?
Excludes the end value
Does range() include or exclude start value?
Does range() include or exclude start value?
Includes the start value
Pattern for counting up loops
Pattern for counting up loops
range(start, end+1)
Pattern for counting down loops
Pattern for counting down loops
range(start, end-1, -1)
Third parameter in range() function
Third parameter in range() function
Step value
Flowchart diamond shape represents
Flowchart diamond shape represents
Decision/condition check
Loop code formatting requirement in Python
Loop code formatting requirement in Python
Must be indented
Step value needed for countdown loops
Step value needed for countdown loops
Negative number (e.g., -1)
