Python Flashcards

1
Q

tuples

A
immutable cannot be changed
are comparable
takes the first value
are more efficient
better memory use
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

f-string

A

a literal string, prefixed with f, which contains expressions inside braces. The expressions are replaced with their values.”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

text file

A

a bunch of lines

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

open()

A

calls a filehandle to open a file

aName = open(filename, mode)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly