Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
while loops
#1
I'm completely new to Python and coding in general. I've been asked to write a program that always asks the user to enter a number. When the user enters the negative number -1, the program should stop requesting the user to enter a number. The program must then calculate the average of the numbers entered excluding the -1. Any help would be appreciated.
Reply


Messages In This Thread
while loops - by CJM125 - Nov-24-2022, 10:08 PM
RE: while loops - by Larz60+ - Nov-24-2022, 10:21 PM
RE: while loops - by BliepMonster - Nov-25-2022, 08:38 AM
RE: while loops - by rob101 - Nov-25-2022, 09:09 AM
RE: while loops - by jefsummers - Nov-26-2022, 01:47 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020