built-in functions Flashcards

1
Q

add a value to a list

A

.append()

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

round the number up no matter what

A

ceiling function

print(ceil(#))

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

check if a value is all uppercase

A

.isupper()

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

check if a value is lower case

A

.islower()

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

remove all values in a list

A

.clear()

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

count the number of similar values in a list

A

counting function

print(list.count(value))

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

append one list onto another

A

extend function

.extend()

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

find the length of a string or how many values are in a list

A

print(len(list or value))

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

round down no matter what

A

print(floor(#))

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