Question: Which statement is a valid dictionary declaration in Python? stock = { name : GM , shares : 1 0 0 , price : 3

Which statement is a valid dictionary declaration in Python?
stock ={name : GM,shares : 100,price : 314.59}
stock ={name=GM,shares=100,price=314.59}
stock =[name : GM,shares : 100,price : 314.59]
stock =[name=GM,shares=100,price=314.59]

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 Databases Questions!