adplus-dvertising
frame-decoration

Question

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

Posted under Python

Answer: (d).All of the mentioned

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

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...