What is the difference between / and // operator in Python? DS301222

/ operator used for division considers float
Ex :
x=9
y=4

div= x/y # gives 2.25

// operator :
floor division :
Won’t consider float value

x//y #gives 2

1 Like

correct . good explanation