how do I do this in python >Cjupyter LCA7-Raw Last Checkpoint: 3 minutes ago (autosaved)LogoutFileEditViewInsertCllKernelWidgetsHelpTrustedPython 3+RunCodeIn [ ]:Assignment 2We wrote...


how do I do this in python


My Questions | bartle x<br>LCA 7- Lists and Tupl X<br>LCA7-Raw.ipynb: INT X<br>What method or ope<br>Home Page - Select<br>LCA7-Raw - Jupyter X<br>+<br>O localhost:8890/notebooks/LCA7-Raw.ipynb<br>ABP<br>: Apps University of Wisco...<br>M Inbox (3,786) - nujsi..<br>O HTML Color Codes<br>p5.js Web Editor | O...<br>TV Gogoanime - Watc..<br>3. Gains from trade...<br>Other bookmarks<br>E Reading list<br>>><br>Cjupyter LCA7-Raw Last Checkpoint: 3 minutes ago (autosaved)<br>Logout<br>File<br>Edit<br>View<br>Insert<br>Cll<br>Kernel<br>Widgets<br>Help<br>Trusted<br>Python 3<br>+<br>Run<br>Code<br>In [ ]:<br>Assignment 2<br>We wrote the following program earlier in chapter 5 (Loops). It keeps accepting numeric inputs from user until he/she enters 'done'. Then calculates the<br>average of all entered values.(try it)<br>Rewrite this program using the concept of lists. That is, create<br>list from scratch and keep adding(appending) user inputs<br>tha<br>its elements until the use<br>types 'done'. Then use appropriate python functions to calculate the average of elements in the resulted list.<br>In [*]: total = 0<br>count = 0<br>while True :<br>inp = input ('Enter a number: ')<br>if inp == 'done' :<br>break<br>value = float(inp)<br>total = total + value<br>count = count + 1<br>average = total / count<br>print('Average:', average)<br>Enter a number:<br>In [ ]:<br>LCA7-Raw.ipynb<br>Show all<br>2:08 PM<br>2 Type here to search<br>3/25/2021<br>...<br>

Extracted text: My Questions | bartle x LCA 7- Lists and Tupl X LCA7-Raw.ipynb: INT X What method or ope Home Page - Select LCA7-Raw - Jupyter X + O localhost:8890/notebooks/LCA7-Raw.ipynb ABP : Apps University of Wisco... M Inbox (3,786) - nujsi.. O HTML Color Codes p5.js Web Editor | O... TV Gogoanime - Watc.. 3. Gains from trade... Other bookmarks E Reading list >> Cjupyter LCA7-Raw Last Checkpoint: 3 minutes ago (autosaved) Logout File Edit View Insert Cll Kernel Widgets Help Trusted Python 3 + Run Code In [ ]: Assignment 2 We wrote the following program earlier in chapter 5 (Loops). It keeps accepting numeric inputs from user until he/she enters 'done'. Then calculates the average of all entered values.(try it) Rewrite this program using the concept of lists. That is, create list from scratch and keep adding(appending) user inputs tha its elements until the use types 'done'. Then use appropriate python functions to calculate the average of elements in the resulted list. In [*]: total = 0 count = 0 while True : inp = input ('Enter a number: ') if inp == 'done' : break value = float(inp) total = total + value count = count + 1 average = total / count print('Average:', average) Enter a number: In [ ]: LCA7-Raw.ipynb Show all 2:08 PM 2 Type here to search 3/25/2021 ...
Jun 06, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here