Python Coding Assignment Need Create Program Allows User Basic Math Functions First Ask Us Q37164040

Python Coding:

For this assignment, you need to create a program that allowsthe user to do some basic math functions. First, ask the user ifthey would like to find out sqrt, log or factorial of a number, andreturn the results.

Here is some sample output: Welcome to the simple math helper.Would you like to calculate? 1. Sqrt 2. Log 3. Factorial > 1Enter the number to sqrt: > 9 3


Answer


from math import sqrt, log2, factorialprint(“Welcome to the simple math helper.”)choice = int(input(“Would you like to calculate?n1. Sqrt n2. Log n3. Factorial n> “))if choice == 1: n

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.