Which of the following is an invalid integer in Python?
-
A
123
-
B
-456
-
C
0
-
D
12.34
Correct answer
16 views
Explanation
Integers are whole numbers without any decimal points. 12.34 is a float, not an integer.
Doubts & discussion
Not sure why the answer is D? Ask here and get an explanation.
Ask a doubt about this MCQ