Vidyalelo
Python · Q43

MCQs for Python Data Types and Numeric Types Chapter

Programming · Python · question 43

Q43

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

A.
x = 13 // 2
B.
x = int(13 / 2)
C.
x = 13 % 2
D.
All of the mentioned
Answer

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board