Homework 9: Scalar Multiplication
Create a function scalar_mult(c, tp) where c is a number, and tp is a tuple consisting of two
numbers. The function returns a tuple, where each item of the tuple is the corresponding item
of tp multiplied by c. You may assume the tuple always has two items (no need to use loops)
and all items are integers or floats. Do NOT import any library. The function should be
capable of handling the following and similar inputs. Follow the same submission requirement
(.py file and screenshot) as before.
>>> scalar_mult(3, (1, 2))
(3, 6)
>>> scalar_mult(5, (-3, 2))
(-15, 10)
Reminder: 3*(1,2) will return (1,2,1,2,1,2), not the intended answer for this question.