From fae3a81922c4b649a6f86d29abc8728c5b3b0bc7 Mon Sep 17 00:00:00 2001 From: Saleh Abednezhad Date: Sun, 2 Jul 2023 23:21:21 +0330 Subject: [PATCH] Update peydayesh.py --- .../Not Done/peydayesh/Initial_project/peydayesh.py | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/Question Bank/Not Done/peydayesh/Initial_project/peydayesh.py b/Question Bank/Not Done/peydayesh/Initial_project/peydayesh.py index ea90f40..fe95b71 100644 --- a/Question Bank/Not Done/peydayesh/Initial_project/peydayesh.py +++ b/Question Bank/Not Done/peydayesh/Initial_project/peydayesh.py @@ -1,9 +1,5 @@ def find(num1, num2, num3): - if num1 == num2: - return 4 - elif num1 == num3: - return 2 - else: - return 1 - - pass + numbers = [1, 2, 3, 4] + return [number for number in numbers if number not in [num1, num2, num3]][0] +#print(find(1,2,3)) +#print(find(1,4,3))