for loop flashcard

for loop flashcard

Assessment

Flashcard

Computers

9th Grade

Hard

Created by

vgh cgj

FREE Resource

Student preview

quiz-placeholder

2 questions

Show all answers

1.

FLASHCARD QUESTION

Front

Python For Loops

Back

A for loop is used for iterating over a sequence (that is either a list, a tuple, a dictionary, a set, or a string).

This is less like the for keyword in other programming languages, and works more like an iterator method as found in other object-orientated programming languages.

2.

FLASHCARD QUESTION

Front

The break Statement

Back

With the break statement we can stop the loop before it has looped through all the items