Python data structure

Closed

Given a dictionary of dictionaries of format {key: {key: value, ...}, ...}, for example:

{'word1': {'word2': 0.5, 'word3': 0.5}, 'word4': {'word5': 0.5, 'word6': [url removed, login to view], 'word7':[url removed, login to view]}, 'word3': {'word8': [url removed, login to view], 'word9': [url removed, login to view], 'word10': [url removed, login to view]}, 'word5': {'word11': 0.5, 'word12': [url removed, login to view], 'word13': [url removed, login to view]}, 'word14': {'word15': 1}, 'word11': {'word15': 1}}

create a function that takes the dictionary, a word and a level as parameters and builds a graph (tree) for that word as a root with associated dictionary words as children and their values as edges. The function should return a dictionary of words for the product of all edges values that create a path from root to each node at the given level.

Example: given the dictionary above, 'word4', and distance 2 the function should return {'word11': [url removed, login to view], 'word12': [url removed, login to view], 'word13': [url removed, login to view]}

If you have any questions, do not hesitate to ask!

Skills: Python

See more: python scrape image product description, harvesting data python website, extract data python file, drupal data input form node, scrape website data python, software write mq4, software write chip epson, website data python, useful software write book, google finance data python, software write web specs, script download google finance data python, scraping data python, templates extract data python, free software write user guide, software write edid, free software write company profile, opening website scrape data python, software write websites idea, software write book images, software write books, software write protection, free software write book, software write book, easy scrape data python

Project ID: #11707441

26 freelancers are bidding on average $25 for this job

$30 USD in 1 day
(26 Reviews)
5.0
sonus21

Hi there, I am a professional Python software developer. See my reviews and works at my profile. Ping me for discussion.

$30 USD in 0 days
(20 Reviews)
4.5
it2051229

Hi there, I went through the requirements and I would like to do this project if given the opportunity. Let me know if you are interested so I can have further details. Thanks.

$30 USD in 1 day
(25 Reviews)
4.2
cracken

I am knowledgeable in Python Tuple just check my latest reviews related to tuple data. I can give it to you on time and with quality. Let me know the best of your time to discuss so we can move forward to the next leve More

$29 USD in 0 days
(8 Reviews)
4.1
msig0000

Hi, find the below code that can be a way: import re,ast from collections import OrderedDict data = '''{'word1': {'word2': 0.5, 'word3': 0.5}, 'word4': {'word5': 0.5, 'word6': 0.25, 'word7':0.25}, 'word3': More

$20 USD in 0 days
(4 Reviews)
3.6
utkarshkatiyar19

hi. i have a lot of experience in python i can easily complete your task. w can have a chat. thanks.....................

$40 USD in 1 day
(5 Reviews)
3.2
$25 USD in 1 day
(10 Reviews)
3.3
$50 USD in 1 day
(9 Reviews)
3.4
DanielRed

Hello, I've looked over your requirements and based on your example I think that I understand how the script should work. For word1 with parameter 2 the script should output {"word8": 0.33, "word10": 0.33, "wo More

$25 USD in 10 days
(11 Reviews)
3.7
gabontau

Hello. I have a knowledge how to do it, but please send me more detilized description if you have.

$25 USD in 1 day
(8 Reviews)
3.3
iyersume

Hi, I am proficient in Python.Hope to get a chance to work with you, Thanks! ----------------------------------- # Sample : ----------------------------------- words = ['word1', 'word2', 'word3', 'word4', 'wor More

$15 USD in 1 day
(4 Reviews)
1.8
karagorn

hey, i hope i understood your question correctly. if i did here my answers. Give me award and get your code block. for level parameter is 2, for word1: {'word8': 0.165, 'word10': 0.165, 'word9': 0.165} for More

$20 USD in 2 days
(1 Review)
1.8
anson418

Greeting, my name is Anson, I am a CS major from UC Davis. I am a programmer of around 10 years now, and currently program professionally using Python. Contact me. I can likely get this done for you within an hour o More

$30 USD in 0 days
(2 Reviews)
1.6
EstonianCoders

Hello, We are an up and coming freelancer team looking to establish ourselves on this website. As such, we do not charge a lot and are working purely to complete your project and increase our reputation. We are More

$25 USD in 1 day
(1 Review)
0.6
omair104

Hello, I am an experienced Python developer and would be happy to work on your project for you. Can you kindly send me more details regarding the project?

$25 USD in 1 day
(0 Reviews)
0.0
rangeonnicolas

Well... this sounds quite easy! Do you want is as a command line program? I see a lot of people already bet on this project, but in case, feel free to contact me ;) Thanks, Nicolas

$14 USD in 1 day
(0 Reviews)
0.0
nromashchenko

Hello! Your task seems pretty easy to implement. I am ready to get it done for you. Nikolay Romashchenko

$15 USD in 1 day
(0 Reviews)
0.0
$15 USD in 1 day
(0 Reviews)
0.0
$10 USD in 1 day
(0 Reviews)
0.0
hsel93

Hello! I can do this, and think that can be easily solved. Let's do this together, so please contact me! Regards!

$25 USD in 1 day
(0 Reviews)
0.0