InterviewSolution
Saved Bookmarks
| 1. |
Determine what is printed by the following program listinput.py, list1 = eval(raw_input(‘Give a list:’)) list2 = eval(raw_input(‘Give another list:’)) print list1 + list2 When the program is running as follows: Unix/DOS > python listinput.py Give a list: ‘[1,2]’ Give another list: “[3,4]” |
| Answer» The program correct answer is = [1,2] [3,4] | |