Write a function named times_ten. The function should accept an argument and display the product of its argument multiplied times 10.
PROGRAM CODE:
def times_ten(number):
"""
Function to multiply the given number by 10 and display the result.
Parameters:
number (int or float): The input number to be multiplied by 10.
Returns:
None: This function does not return any value, only displays the result.
"""
result = number * 10
print(f"The product of {number} multiplied by 10 is: {result}")
# Test the function with some sample inputs
if __name__ == "__main__":
# Test case 1: Integer input
times_ten(5)
# Test case 2: Float input
times_ten(3.14)
# Test case 3: Negative integer input
times_ten(-8)
OUTPUT:
The product of 5 multiplied by 10 is: 50
The product of 3.14 multiplied by 10 is: 31.4
The product of -8 multiplied by 10 is: -80