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.
Q. The function complex(‘2-3j’) is valid but the function complex(‘2 – 3j’) is invalid.
β
Correct Answer: (A)
true
Explanation by: Mr. Dubey
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.
Discussion
Question Analytics
204
Total Visits
2 y ago
Published
Mr. Dubey
Publisher
81%
Success Rate