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

Questions & AnswersCategory: Programming LanguageWhich of the following is the truncation division operator in Python?
1 Answers
Geek Boy Staff answered 2 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.