What is the output of ( 12 // 5 ) in the python
Answers
Answered by
1
Answer:
2
Explanation:
1. Floor division(//) or division(/) performs division
2. Division returns float value
3. Floor division returned value depends upon datatype of data
Eg:
if both the data is integer it returns integer value
>>12//5
>>2
if any one of the data is float it returns float value
>>12.0/5
>>2.0
>>12.0/5.0
>>2.0
Similar questions