InterviewSolution
Saved Bookmarks
| 1. |
Write the output of the given Python code :#!/user/bin/pythonlist1, list2 = [123, ‘xyz’], [456, ‘abc’]print cmpt(list1, list2);print cmp(list2, list1);list3 = list2 + [786];print cmp(list2, list3) |
|
Answer» This will produce the following result: -1 1 -1 |
|