Which of the following is the truncation division operator in Python?

Questions & Answers › Category: Programming Language › Which of the following is the truncation division operator in Python?
1 Answers
Geek Boy Staff answered 4 years ago

b. //
Explanation: // is the operator for truncation division. It is called so because it returns only the integer part of the quotient, truncating the decimal part. For example: 20//3 = 6.