Question: Please use Python code i. To import modules from standard libraries ii. To use functions defined in imported modules 1. Write a Python program (with
Please use Python code i. To import modules from standard libraries ii. To use functions defined in imported modules 1. Write a Python program (with comments) to do the following: a. Import math module and random module from the standard library b. Generate a random integer between 100 and 1000 and assign it to a variable mynum c. Calculate the logarithm of mynum to base 10 and print the result with a suitable message. d. Calculate the logarithm of mynum to base 3 and print the result with a suitable message. e. Calculate the logarithm of mynum to base 2 and print the result with a suitable message. A sample output is shown below
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
