Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
functions
#1
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.
Reply


Messages In This Thread
functions - by Rudson67 - Jun-09-2020, 04:43 PM
RE: functions - by Yoriz - Jun-09-2020, 05:05 PM
RE: functions - by jefsummers - Jun-09-2020, 08:42 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020