Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Python pls Create a function name word_by_me function, this function will take a dictionary and returns a dictionary that contain word and inner dictionary with

Python pls

Create a function name word_by_me function, this function will take a dictionary and returns a dictionary that contain word and inner dictionary with the name and numbers

Input = {

'Ceaser': [('Indo', 30, 40), ('Death' , 20, 50), ('Indo',-10, 60), ('Apron', 20, 55)],

'Baily': [('Indo', 20, 40), ('Indo',-10, 45), ('Iron', 40, 30), ('Indo',-10, 35)],

'Aaron': [('Indo', 20, 10), ('Death', 10, 50), ('Apron', 80, 80), ('Death', -10, 55)],

'Duke': [('Apron', 40, 80), ('Apron', 40, 85), ('Apron',-40, 90)] }

output = {

'Indo': {'Ceaser': [(30,40), (-10,60)], 'Baily': [(20,40), (-10,45), (-10,35)], 'Aaron': [(20,10)]},

'Death': {'Ceaser': [(20,50)], 'Aaron': [(10,50), (-10, 55)]},

'Apron': {'Ceaser': [(20,55)], 'Aaron': [(80,80)], 'Duke': [(40,80), (40,85), (-40,90)]},

'Iron': {'Baily': [(40,30)]} }

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Expert Oracle Database Architecture

Authors: Thomas Kyte, Darl Kuhn

3rd Edition

1430262990, 9781430262992

More Books

Students also viewed these Databases questions

Question

What have you done so far?

Answered: 1 week ago

Question

When it is good, what is different?

Answered: 1 week ago

Question

What is happening now?

Answered: 1 week ago