Jun-09-2020, 04:43 PM
Hi, I have a big problem with this task. Can someone help me? Thank you in advance! :)
Modify the program from point 1 so that the function instead of four numbers gets two lists containing the coordinates of the points. (Point 1 below). It's mainly about operations on lists and counting the length of the section with their help.
Write a program that will: contain a function called with four parameters (x1, y1, x2, y2) being
coordinates (x, y) of two points on the plane. This function is to return a number equal to
the length of the segment formed from these points.
Modify the program from point 1 so that the function instead of four numbers gets two lists containing the coordinates of the points. (Point 1 below). It's mainly about operations on lists and counting the length of the section with their help.
Write a program that will: contain a function called with four parameters (x1, y1, x2, y2) being
coordinates (x, y) of two points on the plane. This function is to return a number equal to
the length of the segment formed from these points.