Skip to content

Commit

Permalink
Update peydayesh.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-robot77 committed Jul 2, 2023
1 parent 8047b78 commit fae3a81
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions Question Bank/Not Done/peydayesh/Initial_project/peydayesh.py
Original file line number Diff line number Diff line change
@@ -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))

0 comments on commit fae3a81

Please sign in to comment.