Question: Python programming language 3. Write down the dataset that can be used to test the correctness of below computer program. (8 marks) x1-eval (input (x1?)

 Python programming language 3. Write down the dataset that can be

Python programming language

3. Write down the dataset that can be used to test the correctness of below computer program. (8 marks) x1-eval (input ("x1?") ) yl-eval (input ("yl?") ) x2-eval (input ("x2?") ) y2-eval (input ("y2?") ) if x1--x2: print("Cannot calculate") if yl -y2 else: else: print ("Horizontal") m= (y2-y1) / (x2-x1) print ("Slope is ",m)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!