Westonci.ca is the Q&A platform that connects you with experts who provide accurate and detailed answers. Experience the ease of finding accurate answers to your questions from a knowledgeable community of professionals. Our platform provides a seamless experience for finding reliable answers from a network of experienced professionals.

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