Post

Python Developer
Python Developer@Python_Dv·
🤔🚀 Comment your answers below! 👇
Python Developer tweet media
English
31
7
92
10.9K
EVY TECHNO
EVY TECHNO@EvyTechno·
For the Python quiz, the correct answer is B) . In Python, any number with a decimal point is automatically interpreted as a floating-point number. Why the other options are incorrect: A) : Integers are whole numbers (e.g., 3). C) : While many languages (like C or Java) distinguish between float and double, Python uses the float type to represent double-precision values. There is no double type in standard Python. D) : This represents a string (text), which would require quotes (e.g., "3.14").
English
1
0
6
710
Kamal Gurjar
Kamal Gurjar@KamalGurjar8·
@Python_Dv Output B) <class 'float'> 3.14 is a decimal literal in Python, and all decimal numbers are stored as float. So type(3.14) → <class 'float'> ✅
English
0
0
3
314
wizzo kaletu
wizzo kaletu@wizzo_kaletu·
@Python_Dv Your are programming python to run on the console the type of value 3.14 in your code It's a decimal no. so it's a float <class 'float'> I love y'all 😽 from Africa 🌍 here we code with smart phone before you work for two years to own a laptop
English
0
0
3
89
Jay
Jay@learnaiwthme·
The correct answer is B. 3.14 is a floating-point number in Python, so: print(type(3.14)) prints:
English
0
0
2
203
Sergei Kotov
Sergei Kotov@kotov_dev·
@Python_Dv B) <class 'float'> Python's number types: › int: whole numbers (5, 100, -3) › float: decimals (3.14, 2.5, 0.1) 3.14 has a decimal so it's float For beginners: The decimal point makes it a float! Even 3.0 is a float, not an int.
English
0
0
1
561
ANKIT 𓃱
ANKIT 𓃱@A9kitSingh·
@Python_Dv B — <class 'float'>. Python doesn’t have a separate double; float already uses double-precision under the hood.
English
0
0
1
98
Jimmy Fikes
Jimmy Fikes@akajim·
@Python_Dv B. In Python, any number having a fractional part is a float.
English
0
0
0
452
Fhie
Fhie@PhievAngel·
@Python_Dv I would pick C to double the pi
English
0
0
0
160
Python Tech
Python Tech@PythonTech43716·
@Python_Dv B) float Data type of this question is float.
English
0
0
0
68
Jenny
Jenny@JennyTheDev·
@Python_Dv B) <class 'float'> 3.14 has a decimal point → Python sees it as float. Fun fact: Python has no 'double' type. C developers cry every time.
English
0
0
0
225
Yeh
Yeh@jeshua_yeh·
@Python_Dv float | y’all kinda make me feel good when I know I’m just starting
English
0
0
0
22
Paylaş