Discover the best answers at Westonci.ca, where experts share their insights and knowledge with you. Explore thousands of questions and answers from knowledgeable experts in various fields on our Q&A platform. Join our Q&A platform to connect with experts dedicated to providing accurate answers to your questions in various fields.

What is the output of the following code?
print (12 // 6)

Sagot :

Answer:

2

  • See here we have //
  • // means floor division in python.
  • It gives us only the integer part not floating or decimal.

So

12//6=2