Which of the following is not a valid way to represent an integer in Python?
-
A
100
-
B
0xFF
-
C
3.14
Correct answer
-
D
-42
16 views
Explanation
Integers do not contain decimal points. 3.14 is a float, not an integer.
Doubts & discussion
Not sure why the answer is C? Ask here and get an explanation.
Ask a doubt about this MCQ