What will be the correct output of the statement : >>>4//3.0 i. 1 ii. 1.0 iii 1.3333 iv. None of the above
Answers
Answered by
1
Explanation:
gdvdgdtstyrjjdurbhrirjrheidjd
Answered by
0
The output of the given expression 4//3.0 is 1.
Explanation:
// is the floor division operator. It returns the integer value while dividing 4 with 3.0.
/ is the division operator in python that by default returns the float value.
For example
the result of 12/4 = 3.0
Whereas 12//4 = 3
% is the modulo operator that returns the remainder. For example,
12%7=5
You can also use the floor() function instead of the // floor division operator.
Similar questions