Question: Filename: assign 2 - 2 . py Create an old sample dictionary { 0 : 1 0 , 1 : 2 0 } . Write

Filename: assign2-2.py
Create an old sample dictionary {0:10,1:20}. Write a Python script to take the number of runs from cmd to add items to the old dictionary. Use a loop to append these key/value pairs to the dictionary. Print out the resulting dictionary for each run (NOT just the last run). Please find the number patterns to append key/value pairs. You cannot add the numbers manually. Print the result out as follows.

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!