Question
Suppose a graph is represented by a list of lists A of zeroes and
ones. If there is an edge from node i to j, then A[i][j] = 1,
otherwise A[i][j] = 0. Write a Python function to find a path
between any two nodes.
Write code for a CGI script which asks the user to enter a length in inches. After the user enters the value and presses the submit button, the length in centimeters is written to screen. One inch equals 2.54 centimeters. When the script starts up, the form shown at the left is printed in the browser. At the right is the reply. All numbers are printed as floats with 2 decimal places. local host 8000/quiz8a.py localhost 8000/quiz8a.py Enter a length in inches: 23 Submit Enter a length in inches Submit 23.00 inches is 58.42 centimeters
Explanation / Answer
Below is the required code:-
Thank you.