Skip to content

Commit 06636b2

Browse files
authored
Create Assignment on Selection in Python - Level 1.py
1 parent 0e89549 commit 06636b2

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#lex_auth_012693711503400960120
2+
3+
def find_product(num1,num2,num3):
4+
product=0
5+
#write your logic here
6+
if num3 == 7:
7+
product=-1
8+
elif num2 == 7:
9+
product=num3
10+
elif num1 == 7:
11+
product=num2*num3
12+
else:
13+
product=num1*num2*num3
14+
return product
15+
16+
#Provide different values for num1, num2, num3 and test your program
17+
product=find_product(7,6,2)
18+
print(product)

0 commit comments

Comments
 (0)