Functions Flashcards
(9 cards)
1
Q
print(“Hi Mom”)
A
prints the object to the command line (‘Hi Mom’)
2
Q
input()
A
accepts user input
3
Q
len(“Bob”)
A
The length of the object (3)
4
Q
int()
A
converts a non-int to an int
5
Q
str()
A
converts a non-str to a str
6
Q
bool()
A
converts a non-bool to a bool
7
Q
float()
A
converts a non-float to a float
8
Q
set()
A
converts a list to a set
9
Q
list()
A
converts a set to a list