Question: please explain in details, thank you Now: 1. Write a Python program which cause defined functionne mes 1.1. The program should include a program header
Now: 1. Write a Python program which cause defined functionne mes 1.1. The program should include a program header and to come in the coas described in the Starter module 12 import the random methods to get randomandandandonandom Define a function which acts paramete r s and other than one print statement. In other words dom i c i de the function The function should access no external values other than the passed in the parameters and the only temal affect of the function te a m alohe caling program using the return instruction Ad v i es Ca exercises 132 133 134 expected values the function should ne The second and should be The function should in the parameters The function should the w bers to this is to you productor ent of the the program) numbers. As tout 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 her 152 Get out of the loop the operationis 153 Gew ing pondom 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 e nd the rest of the function 16. Be sure to explain your specially the function s and conditional de 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 union (They won't show as blue when your program runs) med my function to you can name your unction something else if you wish RESTART: Tunctions.py - This program does math with random bers. Enter one of these operations: - to quit: O t o quit. - Enter one of these operations -- thop called with 3.6B 2.0 3.68 - 2.0 - 1.6800DDDDDDDDDDD2 Enter one of these operations: - mathop called with 7.11 7.56 2.11 . 1791599999999996 Enter one of these operations: Enter one of these sperations- internet seperti Notes: Except for the one prin instruction which is provided to you your program and for your instructor what is some of the hom e of the con other words and of the function Requirements have the com p ost os The mathematical person probably for one of charactersings. This met d i e of Phon and someo ne langua gyong such as the programmuster what datatype the function rulums r e fletorit orcharora por and the function can only retum hat one type of value Now: 1. Write a Python program which cause defined functionne mes 1.1. The program should include a program header and to come in the coas described in the Starter module 12 import the random methods to get randomandandandonandom Define a function which acts paramete r s and other than one print statement. In other words dom i c i de the function The function should access no external values other than the passed in the parameters and the only temal affect of the function te a m alohe caling program using the return instruction Ad v i es Ca exercises 132 133 134 expected values the function should ne The second and should be The function should in the parameters The function should the w bers to this is to you productor ent of the the program) numbers. As tout 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 her 152 Get out of the loop the operationis 153 Gew ing pondom 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 e nd the rest of the function 16. Be sure to explain your specially the function s and conditional de 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 union (They won't show as blue when your program runs) med my function to you can name your unction something else if you wish RESTART: Tunctions.py - This program does math with random bers. Enter one of these operations: - to quit: O t o quit. - Enter one of these operations -- thop called with 3.6B 2.0 3.68 - 2.0 - 1.6800DDDDDDDDDDD2 Enter one of these operations: - mathop called with 7.11 7.56 2.11 . 1791599999999996 Enter one of these operations: Enter one of these sperations- internet seperti Notes: Except for the one prin instruction which is provided to you your program and for your instructor what is some of the hom e of the con other words and of the function Requirements have the com p ost os The mathematical person probably for one of charactersings. This met d i e of Phon and someo ne langua gyong such as the programmuster what datatype the function rulums r e fletorit orcharora por and the function can only retum hat one type of value
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
