in python3. can you help with turning output into the desired output of dictionaries. Same as the picture down below.

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter6: Looping
Section: Chapter Questions
Problem 2GZ
icon
Related questions
Question

in python3. can you help with turning output into the desired output of dictionaries. Same as the picture down below.

Written code:
garden_location = input("Name the location of the garden? ")
Ewhile loop until garden location is quit
while garden_location != quit':
r=_int(input("What is the rate at which it is located? "))
sname input("Name of the seed? ")
while loop until seed name is stop and quit
while sname != 'stop' and snane != 'quit':
quant = int(input("How much of that seed is needed? "))
sname input("Nane of the seed? ")
garden_location = input("Name the location of the garden? ")
Output of code:
Name the location of the garden? california
What is the rate at which it is located? 1
Name of the seed? pumpkin
How much of that seed is needed? 2
Name of the seed? okra
How much of that seed is needed?
Need inputs turned into dictionary:
gardens": {"california": {"location": "california", "location rate":
"pumpkin": 2, "okraf: 1}}.|
"seeds":
Transcribed Image Text:Written code: garden_location = input("Name the location of the garden? ") Ewhile loop until garden location is quit while garden_location != quit': r=_int(input("What is the rate at which it is located? ")) sname input("Name of the seed? ") while loop until seed name is stop and quit while sname != 'stop' and snane != 'quit': quant = int(input("How much of that seed is needed? ")) sname input("Nane of the seed? ") garden_location = input("Name the location of the garden? ") Output of code: Name the location of the garden? california What is the rate at which it is located? 1 Name of the seed? pumpkin How much of that seed is needed? 2 Name of the seed? okra How much of that seed is needed? Need inputs turned into dictionary: gardens": {"california": {"location": "california", "location rate": "pumpkin": 2, "okraf: 1}}.| "seeds":
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Files and Directory
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning