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.Related Questions on Data Types and Numeric Types
What data type is used to represent a sequence of characters in Python?
A. string
B. char
C. text
D. str
What is the purpose of the str() function in Python?
A. To convert a string to a number
B. To format strings
C. To concatenate strings
D. To convert a number to a string
Join The Discussion