Skip to content

Commit edc7c28

Browse files
committed
Copy instructions from num mystery 1 solution
1 parent de3c56a commit edc7c28

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed
Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
1-
# Write a function that takes in 3 integers. Get the sum of the 3 integers. Get
2-
# the difference between the largest integer and the smallest integer. The
3-
# function will return the product of these two integers you got.
1+
# Number Mystery 1
2+
# Write a function called num_mystery that takes in 3 integers.
3+
# The function should calculate the sum of the 3 integers and
4+
# the difference between the largest integer and the smallest integer.
5+
# The function should return the product of these two integers you calculated.
46
#
5-
# Use this function on 1,2,3 and print it. Use this function on 5,13,7 and
6-
# print it
7+
# Hint: You may find it useful to use the max() and min() functions.
8+
#
9+
# Use the num_mystery function on 1, 2, 3 and print the result.
10+
# Use the num_mystery function on 5, 13, 7 and print the result.
11+
12+
# write code here

0 commit comments

Comments
 (0)