Examveda
Examveda

How do you create a floating-point number in Python?

A. 5.0

B. 5

C. "5.0"

D. float(5)

Answer: Option A

Solution(By Examveda Team)

Floating-point numbers can be created using the decimal point notation, like 5.0.

This Question Belongs to Python Program >> Data Types And Numeric Types

Join The Discussion

Related Questions on Data Types and Numeric Types