Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions 2_intermediate/chapter11/practice/number_mystery_1.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Number Mystery 1
# Write a function called num_mystery that takes in 3 integers.
# The function should calculate the sum of the 3 integers and
# the difference between the largest integer and the smallest integer.
# The function should return the product of these two integers you calculated.
#
# Hint: You may find it useful to use the max() and min() functions.
#
# Use the num_mystery function on 1, 2, 3 and print the result.
# Use the num_mystery function on 5, 13, 7 and print the result.

# write code here