Python Tutorial: Division in Python - Python Numbers #31

preview_player
Показать описание

In this Python Tutorial we discuss Division in Python 3. We cover the difference in two different division types in Python 3. First one is true division and the second is floor division in Python 3.

True division returns a remainder in a floating type number format. True division is a more accurate number but the floating point number may need to be adjusted using round built-in function or the decimal module.

Floor division is less accurate and the number is rounded down the the next whole number. Floor division will return a integer if only integers are used in the equation. If you use at least one floating point number we will get a float returned.
Рекомендации по теме
Комментарии
Автор

5:08
  slash /

backslash \

your videos are instructive :)

ifoundthistoday
Автор

where do i find the python script that just does my math problems like that?

PvMFrosties
Автор

how can i do that in a list??? numbers in it, all i get on youtube is to "split", fvk, i just wanna divide them,
def divide(list):
div=0
for num in list:
div/=n
print(div)

n=[12, 34, 45]
divide(n)

doesnt work

armandguillen
join shbcf.ru