In the 9th tutorial in our introduction to programming using Python series we present the while loops.
The video tutorial can be found here:
https://youtu.be/rW-iqRxP6Cs
Our first exercise for this tutorial is to create a number adder/averager.
When you run your code it should prompt the user to enter numbers until the user says 'Done'
Then it should display the number of numbers the user entered, the total and average for them.
Here is a screen shot of what you should see when you run your program:
The code to accomplish this is as follows:
The video tutorial can be found here:
https://youtu.be/rW-iqRxP6Cs
Our first exercise for this tutorial is to create a number adder/averager.
When you run your code it should prompt the user to enter numbers until the user says 'Done'
Then it should display the number of numbers the user entered, the total and average for them.
Here is a screen shot of what you should see when you run your program:
No comments:
Post a Comment