Functions Flashcards

(9 cards)

1
Q

print(“Hi Mom”)

A

prints the object to the command line (‘Hi Mom’)

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

input()

A

accepts user input

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

len(“Bob”)

A

The length of the object (3)

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

int()

A

converts a non-int to an int

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

str()

A

converts a non-str to a str

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

bool()

A

converts a non-bool to a bool

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

float()

A

converts a non-float to a float

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

set()

A

converts a list to a set

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

list()

A

converts a set to a list

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