Home / Engineering / Problem Solving and Python Programming / Question

M

Mr. Dubey • 51.43K Points
Coach

Q.) In python we do not specify types, it is
directly interpreted by the compiler, so
consider the following operation to be
performed.
>>>x = 13 ? 2
objective is to make sure x has a integer
value, select all that apply (python 3.xx)

(A) x = 13 // 2
(B) x = int(13 / 2)
(C) x = 13 % 2
(D) all of the mentioned
Correct answer : Option (D) - all of the mentioned

Explanation:
 // is integer operation in python

Share

Discusssion

Login to discuss.