1. Home
  2. Data Science
  3. Python
  4. Which of the following is a valid float representation in…

Added 4 May 2024

Which of the following is a valid float representation in Python?

  1. 2e3 Correct answer
  2. 0b101
  3. '3.14'
  4. [1, 2, 3]

Correct answer

A. 2e3

16 views

MCQSEXAM

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

Shown after review. No links please.

More Python MCQs

Practise all Python MCQs

Similar MCQs