Question: What is the output of the following Python code? myList = {} myDictionary = [] %3D myList[0] = chegg myDictionary.insert(0, myList[0]) print (myDictionary) a)
What is the output of the following Python code? myList = {} myDictionary = [] %3D myList[0] = "chegg" myDictionary.insert(0, myList[0]) print (myDictionary) a) ['chegg'] b) {0: 'chegg'} c) chegg d) The code generates an error
Step by Step Solution
3.38 Rating (148 Votes )
There are 3 Steps involved in it
The option is achegg Because they initialized both empt... View full answer
Get step-by-step solutions from verified subject matter experts
