Python / vs // Operator [Duplicate]
I Encountered the Use of // Opertor in Place of / in a Python Tutorial I Was Going Through. What Is the Difference Between / and // Operator in Python? 0 1...
I encountered the use of // opertor in place of / in a python tutorial I was going through. What is the difference between / and // operator in Python?
In Python 3.0 and above, check in your terminal
a) / operator aka classic division
>>> 5/2
2.5
b) //operator aka floor division
>>> 5//2
2
Reference