Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- coordinate_a = list(map(int, input("A: ").split()))
- coordinate_b = list(map(int, input("B: ").split()))
- coordinate_c = list(map(int, input("C: ").split()))
- coordinate_d = list(map(int, input("D: ").split()))
- coordinates = [coordinate_a, coordinate_b, coordinate_c, coordinate_d]
- small = coordinates[0]
- larg = coordinates[0]
- for coordinate in coordinates[1:]:
- if len(coordinate) < len(small):
- small = coordinate
- if len(coordinate) > len(larg):
- larg = coordinate
- print("май - малкия", small)
- print("най - големия", larg)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement