Determine what is printed by the following program listinput.py, list1 = eval(raw_input(‘Give a list:’))
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]”
4 views