Convert algorithms 4 (Edexcel GCSE Computer Science): Flashcards

📚Flashcards
Convert algorithms 4: Count-controlled loops
Sign up to keep revising.Create a free account to study more flashcards and track your progress.

Practise the cards

12 cards from this deck

Show

Count-controlled loops definition

Loops that run for a fixed number of times, known in advance

Python syntax for count-controlled loops

for...in range()

Key predictability of count-controlled loops

Know exact iteration count before loop starts

Flowchart symbol indicating loop structure

Backward arrow

Does range() include or exclude end value?

Excludes the end value

Does range() include or exclude start value?

Includes the start value

Pattern for counting up loops

range(start, end+1)

Pattern for counting down loops

range(start, end-1, -1)

Third parameter in range() function

Step value

Flowchart diamond shape represents

Decision/condition check

Loop code formatting requirement in Python

Must be indented

Step value needed for countdown loops

Negative number (e.g., -1)

Join 100,000+ GCSE students studying Flashcards with us.

Select your subjects, and get access to A+ resources today.