0

What does that mean print(10//4)

Can you help?

13th Feb 2022, 6:59 AM
Fanavin
Fanavin - avatar
2 Antworten
0
Google says it simply floors the division 10/ 4 = 2.5 10//4 = 2
13th Feb 2022, 7:14 AM
Raul Ramirez
Raul Ramirez - avatar
0
Fanavin I noted you are doing Python Core. Please review lesson 5.1 which states the following: "Floor division is done using two forward slashes and is used to determine the quotient of a division (the quantity produced by the division of two numbers)." There is a code example which will also help you understand.
13th Feb 2022, 9:01 AM
Rik Wittkopp
Rik Wittkopp - avatar