Question: Now: 1. Write a Python program which cause defined function e s 1.1. The program should include a program header and to come in the
Now: 1. Write a Python program which cause defined function e s 1.1. The program should include a program header and to come in the coas described in the Starter module 12 port the random methods to get randomrandi andandonandom) Define a function which acts paramete r s and other than one print statement. In other words do which the function The function should access no external values other than the passed in the parameters and the only temal effect of the function bewone ma t he caling program using the return into ho w previous Careers 132 133 134 expected as the consume The second and should be bers The function should the parameters to this is you The function should the productor ent of the the program) numbers. As 14 Display a s on of the program to the user 15 nap Pemain program should 15. Prompt the user or operation to promo t er tout 152. Get out of the loop the operationis 153 Gew ing point random being through 100 1.5.4 Call your function with the chosen operation and the e ndom values 155 inform the use of the operation the n there of the function 16. Be sure to explain your specially the function s and conditional code s Tum in your program to the appropriately named DL assignment folder 2. Sample output: . Note that the lines shown in blue should be pwed by the function. They won't show a t when your program us e d my function to you can name your union something else if you wish RESTART: Functions.py - This program does math with random b ers Enter one of these operations: - to quit O to quit - Enter one of these operations -- rathop called with 3.6B 2.0 3.68 - 2.0 - 1.6800DDDDDDDDDDD2 Enter one of these operations: - mathap called with 7.11 7.56 2.11 . 1751599999999996 Enter one of these operations- wit Enter one of these operations - - - internet se operations- Notes: Except for the one pr in ction which is provided to you your program and for your instructor her words and of the functional Requirements W ed 13 have the com po n g The mathematical operation probably a few of one of charactersings. This m et d e i ure of Pohon and someone langua g e such as the programmustele datatype the function rumorem fator intorcharora por and the function can only retum alone type of value
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
