New course! Every coder should learn Generative AI!
Try a free lesson0
What's the difference between /and// operation
2 Answers
+ 2
The / operator actually performs a real division, providing a real number result.
The // operator performs a so called floor division, where the division is performed and it is rounded to the smaller integer number. It is also called the integer division, as ๐ต๐๐ ๐ธ๐๐๐๐๐ stated.
Happy coding!
0
Thanks