

McqMate
Q. |
Which of the following is incorrect? |
A. | float(‘inf’) |
B. | float(‘nan’) |
C. | float(’56’+’78’) |
D. | float(’12+34′) |
Answer» D. float(’12+34′) | |
Explanation: ‘+’ cannot be converted to a float. |
View all MCQs in
Problem Solving and Python ProgrammingNo comments yet