Question: Write a python program in which bandwidth between 4 hosts (given as below) into a dictionary and a function to return the bandwidth of a
Write a python program in which bandwidth between 4 hosts (given as below) into a dictionary and a function to return the bandwidth of a link, when link is passed as a parameter. Links have bandwidth as following {(1,2):10Mbps, (2,3):5Mbps, (3,4):10Mbps}
For example, Input: Enter the link: (2,3)
Output should be: Bandwidth for link between h2 and h3 is 5Mbps
Step by Step Solution
3.40 Rating (150 Votes )
There are 3 Steps involved in it
You can create a Python program to store the bandwidth between 4 hosts in a dictionary and then crea... View full answer
Get step-by-step solutions from verified subject matter experts
