From 0c2a20c1cef68f38b9442cee8cfbc3f7678969dc Mon Sep 17 00:00:00 2001 From: "paul.bertrand" Date: Mon, 10 Feb 2025 09:26:49 +0100 Subject: [PATCH] la fonction marche --- paul.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/paul.py b/paul.py index e69de29..5c5fa65 100644 --- a/paul.py +++ b/paul.py @@ -0,0 +1,9 @@ +from math import sqrt +def point(x, y): + distance = 300 + if x<500 and sqrt((x-300)**2+y**2)> distance: + return 2 + elif x > 500 and sqrt((x - 300)**2+(y + 1000)**2)> distance: + return 2 + else: + return 3 \ No newline at end of file