Built-in Functions Flashcards

0
Q

returns the absolute value of a number

A

abs()

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

abs()

A

return the absolute value of a number

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

all(iterable)

A

returns True if any element of the iterable is true. If empty returns False

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

returns True if any element of the iterable is true. If empty returns False

A

all(iterable)

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

basestring()

A

used to test whether an object is an instance of ‘str’ or ‘unicode’

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

used to test whether an object is an instance of ‘str’ or ‘unicode’

A

basestring()

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

bin(x)

A

converts an integer number to a binary string

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