Python Number Methods Flashcards

1
Q

abs(-x)

A

returns the absolute value

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

round(3.1223)

A

rounds it up

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

int(‘10’)

A

returns 10

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

float(3.15)

A

returns 3.15

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

max([1,2,3,323,23,121])

A

returns the maximum amount

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

min([1,2,3,4,5])

A

returns the minimum amount

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

sum([1,2,3,4,5])

A

returns the total amount of all

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

pow(2,3)

A

returns x power to y

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