Python Number Methods Flashcards
1
Q
abs(-x)
A
returns the absolute value
2
Q
round(3.1223)
A
rounds it up
3
Q
int(‘10’)
A
returns 10
4
Q
float(3.15)
A
returns 3.15
5
Q
max([1,2,3,323,23,121])
A
returns the maximum amount
6
Q
min([1,2,3,4,5])
A
returns the minimum amount
7
Q
sum([1,2,3,4,5])
A
returns the total amount of all
8
Q
pow(2,3)
A
returns x power to y