Explanation:
1. print()
print() is a Python function.
It displays the result on the screen.
2. 10
10 is the first number, called the dividend.
3. //
// is called the floor division operator.
It divides two numbers and gives the whole-number quotient, rounded down.
4. 3
3 is the second number, called the divisor.
5. Calculation
10 ÷ 3 = 3.333...
Using //, Python takes the floor value:
10 // 3 = 3
6. Output
3

0 Comments:
Post a Comment