CBSE Class 10 Computer Applications Question 29 of 31

Python Revision — Question 17

Back to all questions
17
Question

Question 17

What is meant by a floating-point literal in Python ? How many ways can a floating literal be represented into ?

Answer

Floating point literals represent real numbers and are written with a decimal point dividing the integer and fractional parts.

Floating literals are represented in Python in two forms —

  1. Fractional Form — 2.0, 17.5, -13.0, -0.00625
  2. Exponent form — 152E05, 1.52E07, 0.152E08, -0.172E-3