Built-in Functions Flashcards
1
Q
returns the absolute value of a number
A
abs()
2
Q
all(iterable)
A
returns True if any element of the iterable is true. If empty returns False
3
Q
returns True if any element of the iterable is true. If empty returns False
A
all(iterable)
4
Q
basestring()
A
used to test whether an object is an instance of ‘str’ or ‘unicode’
5
Q
used to test whether an object is an instance of ‘str’ or ‘unicode’
A
basestring()
6
Q
bin(x)
A
converts an integer number to a binary string
7
Q
abs()
A
return the absolute value of a number