The data type of 3.14 in Python is:
-
A
int
-
B
float
Correct answer
-
C
str
-
D
bool
11 views
Explanation
3.14 is a floating-point number, type float. Source: NBF StudyHub, Chapter 2 Important MCQs, Q1.
Reference
Asked in: Matric,FBISE
Doubts & discussion
Not sure why the answer is B? Ask here and get an explanation.
Ask a doubt about this MCQ