Which among the following is the correct representation of “float(5,0)”?
A. 12345.123
B. 12345.1
C. 12345
D. 123.123
Answer:A
Which among the following is the correct representation of “float(5,0)”?
A. 12345.123 B. 12345.1 C. 12345 D. 123.123
Explanation: “float(5,0) says there should be total of five digit, in which no digit should be at the right of the decimal.