New course! Every coder should learn Generative AI!
Try a free lesson0
What is the difference between a slash and a double slash in python
the difference between 2/3 and 2//3
2 Answers
+ 2
2/3 produces a float (0.6666...)
2//3 produces an integer (0 in this case)
0
OK thanks