Which of the following is a valid float representation in Python?
-
A
2e3
Correct answer
-
B
0b101
-
C
'3.14'
-
D
[1, 2, 3]
15 views
Explanation
2e3 is scientific notation for 2000, representing a valid float in Python.
Doubts & discussion
Not sure why the answer is A? Ask here and get an explanation.
Ask a doubt about this MCQ