What will be the output of the following:
(i) print(len(str(23//4)))
(ii) print(len(str ( 23/4)))
Answers
Answered by
2
Answer:
1
4
Explanation:
23//4 = 5
len(5) = 1
23/4 = 5.75
len(5.75) = 4
Note: 5.75 is string type in this case therefore '.' is one of the character so len = 4
Similar questions