Post

Coding Computing Coach
Coding Computing Coach@CodingComputing·
@PythonPr Answer: A Solution: There are 2 division operators in Python, / and //. / is regular division. It gives back a float, even if the operands are ints. // is floor division. It returns what we call "quotient". It gives back an int if the operands are ints. The value is +
English
1
0
2
147
Coding Computing Coach
Coding Computing Coach@CodingComputing·
@PythonPr the fraction rounded down. Eg. 10 // 5 gives 2 (not 2.0 like / would) 14//5 also gives 2 (not 2.8 like / would) -14//5 gives -3 (not -2.8 like / would, and we round down)
English
0
0
0
39
Partager