What does that mean print(10//4) | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite

What does that mean print(10//4)

Can you help?

13th Feb 2022, 6:59 AM
Fanavin - avatar
2 Réponses
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
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