Which of the following is incorrect?
A. float(‘inf’)
B. float(‘nan’)
C. float(’56’+’78’)
D. float(’12+34′)
Answer:A
Which of the following is incorrect?
A. float(‘inf’) B. float(‘nan’) C. float(’56’+’78’) D. float(’12+34′)
Explanation: ‘+’ cannot be converted to a float.