+ 1
Can any one tell me what // is it đ€đ€
I am learning python i am reaching on 3rd level but I cant understand it
4 Answers
+ 4
This video will help you to learn all basics from advance level. Solo lessons are not sufficient for advance learning you have to find some other resources .
https://youtu.be/WGJJIrtnfpk
+ 1
Md. Nasif-ur-Rahman Rimon Thanks. I thought // served the same purpose everywheređ
+ 1
Hey Vanshita Khandelwal This Is One Of The Operator And We Call It Floor Division Operator And We Use This Operator To Remove Decimal Part Of Our Division Without Doing Round Off Of Our Number.
For Ex- When You Divide 3 by 2 Then This Will Result As 1.5
x=3/2
print(x)
Output- 1.5
But When We Use Floor Division Then This Will Remove The Decimal Part Of The Quotient.
For Ex -
x=3//2
print(x)
This Will Output You 1
And The Difference Between Normal Division And Floor Division Is That Normal Division Outputs In Floating Number Where Floor Division Outputs In Integer Value.
0
That is floor division operator