Question: What is output? m y v a r = [ ' p y t h o n ' ] m y l ist = m

What is output?
myvar=['python']
mylist =myvar[0].split()
mylist += 'world'
del mylist[1]
print(mylist)
['python','o','r', I,''d']
['p','t','h','o', n','w','o', r', I; 'd']
['python', 'orld']
['python']
What is output? m y v a r = [ ' p y t h o n ' ] m

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!