Skip to content
Related Articles
Get the best out of our app
GeeksforGeeks App
Open App
geeksforgeeks
Browser
Continue

Related Articles

Python | Operators | Question 1

Improve Article
Save Article
Like Article
Improve Article
Save Article
Like Article

What is the output of the following code : 

Python3




print 9//2

(A)

4.5

(B)

4.0

(C)

4

(D)

Error


Answer: (C)

Explanation:

The ‘//’ operator in Python returns the integer part of the floating number.


Quiz of this Question
Please comment below if you find anything wrong in the above post

My Personal Notes arrow_drop_up
Last Updated : 28 Jun, 2021
Like Article
Save Article
Similar Reads