Welcome to Westonci.ca, where finding answers to your questions is made simple by our community of experts. Discover a wealth of knowledge from experts across different disciplines on our comprehensive Q&A platform. Experience the convenience of finding accurate answers to your questions from knowledgeable experts on our platform.

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