Question-112: When you run below program, what would be printed on console?
listOfNames=['Amit' , 'John' , 'Venkat' , 'Simon' ]
listOfNames[0]='Rakesh'
print(listOfNames)
- ['Amit', 'John', 'Venkat', 'Simon']
- Get all Questions and Answer from here
- You need to have paid subscription to access all questions
- Thanks for considering Python Certification Material
Answer: B
Exp: You can always update existing list. Hence,
You can access to full explanation to question and answer from this page.