What is the difference between / and //?

I know both produce float numbers

+2 votes

** /** will produce floating division

Ex:

`27/8 = 3.375`

`//`

Ex:

`27/8 = 3`

Hope this helps!

+2 votes

/ is used for regular division, and produces float numbers.

// is used for integer division, and only produces integers, dropping any remainder.

for example, 9//2 = 4 , since 2 goes into 9 4 whole times.

+2 votes

/ is for regular division and // is used to indicate integer division. 10/3=3.33 but 10//3=3 because 3 goes into 10 three times.