Question: Task 5 : Working with dictionaries Here is a reference on dictionaries. In [ ] : pokemon nane: bulbasaur, nickname: potato, } shiny: False In

Task 5: Working with dictionaries
Here is a reference on dictionaries.
In []: pokemon
"nane": "bulbasaur",
"nickname": "potato",
}
"shiny": False
In []:
5b. Change the value of nickname from potato to something else.
In []:
5c. Add the key, value pair "type" : "grass" to the dictionary.
In []:
Task 6: Loops and If Statements
6a. Use the range function to loop through numbers and print each one.
Note: Should iterate between a range of 0 and the length of numbers
In []
In []:
6b. Loop through potato_weights and print yum if it is larger than 0.7
In []: potato_weights =[0.32,0.53,1.2,0.21,0.36,0.72,0.12,0.23,0.83,0.91,0.56]
In ] :
6c. Loop through and print each value of potato_weights until it is less than 0.2.
There are multiple ways to do this (this is not the only possible answer).
In ]:
 Task 5: Working with dictionaries Here is a reference on dictionaries.

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!