This is the presentation associated with the python list add video.
[dflip id=”3392″][/dflip]
Python List Add Video Question
This is the Question that was asked in the python list add video
Question : What is the output of the following code:
In [ ]:
namelist = ["Bill", "Steve", "Tim"]
namelist2 = {1:"Tom", 2: "James"}
namelist.extend(namelist2)
print(namelist)
[bg_collapse view=”button-blue” color=”#ffffff” icon=”eye” expand_text=”Show Answer” collapse_text=”Hide Answer” ]
In [1]:
namelist = ["Bill", "Steve", "Tim"]
namelist2 = {1:"Tom", 2: "James"}
namelist.extend(namelist2)
print(namelist)
[/bg_collapse]