Post

Python Programming
Python Programming@PythonPr·
What is the output of the following Python code?
Python Programming tweet media
English
11
7
38
6.2K
Jimmy Fikes
Jimmy Fikes@akajim·
@PythonPr Division returns a float and floor division drops decimal values, So, 4.0 4
English
0
0
2
108
Dhana Masi
Dhana Masi@dhana_masi·
@PythonPr First answer 4 Meaning: Floating number can't print the as output!, so the answer is 4!! Second answer: 4.0 Meaning: if you want float number with the output, you should use floor division operator //
English
0
0
0
21
Paylaş