We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d5a2f2f + edc7c28 commit 9c70b31Copy full SHA for 9c70b31
2_intermediate/chapter11/practice/number_mystery_1.py
@@ -0,0 +1,12 @@
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.
6
+#
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