Module 1-8,9 & Module 2-1,2

studied byStudied by 0 people
0.0(0)
learn
LearnA personalized and smart learning plan
exam
Practice TestTake a test on your terms and definitions
spaced repetition
Spaced RepetitionScientifically backed study method
heart puzzle
Matching GameHow quick can you match all your cards?
flashcards
FlashcardsStudy terms and definitions

1 / 7

encourage image

There's no tags or description

Looks like no one added any tags here yet for you.

8 Terms

1

Characteristics of Sets (3)

  • duplicates are not allowed

  • order does not matter (no indexing or slicing notation)

  • immutable elements

New cards
2

Characteristics of Tuples

  • duplicates are allowed

  • they are immutable

  • able to use index and slicing notation

New cards
3

What is the value based For Loop?

Meaning for each element in a list, we do something

New cards
4

What is the range() function?

Generates a sequence of numbers

  • range(stop): generates numbers from 0 to stop -1

  • range(start, stop): generates numbers from start to stop but does not include stop point

  • range(start, stop, step)

New cards
5

Iterable

any data collection type capable of returning its members one at a time, allowing it to be looped over in a for loop.

New cards
6

Can you use index looping for sets?

No

New cards
7

Boolean values

Either true or false

Case sensitive

New cards
8

Precedence of Boolean Operators

  1. not

  2. and

  3. or

    (values in parenthesis are always evaluated first)

New cards
robot