McqMate
| Q. |
The function complex(‘2-3j’) is valid but the function complex(‘2 – 3j’) is invalid. |
| A. | true |
| B. | false |
| Answer» A. true | |
| Explanation: when converting from a string, the string must not contain any blank spaces around the + or – operator. hence the function complex(‘2 – 3j’) will result in an error. | |
View all MCQs in
Problem Solving and Python ProgrammingNo comments yet