Question: What does the following code print? 1 ) def modify ( numList ) : numList [ 1 ] = 9 9 list = [ 1

What does the following code print?
1)
def modify(numList): numList[1]=99 list =[10,20,30] modify(list) print(list)
2)
def modify(string): string[0]='C' string = 'Hello' modify(string) print(string)
3)
def modify(string): string = 'Cello' string = 'Hello' modify(string) print(string)

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!