Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
another problem :)
#11
You don't need a while loop. A while loop would be of use to ask the question over an over again. You only need to do it once. So remove the while loop on line 24, and unindent lines 25-28 once. Note that you will need a conditional eventually, because the assignment requires you to check that the entered value is between 0 and 100.

Also, I would rename the list of scores to 'scores', and rename the variable with the input to 'score'. That would make a little more sense.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
Reply


Messages In This Thread
another problem :) - by raymond2688 - Aug-02-2019, 06:02 PM
RE: another problem :) - by Yoriz - Aug-02-2019, 06:15 PM
RE: another problem :) - by raymond2688 - Aug-02-2019, 07:08 PM
RE: another problem :) - by ichabod801 - Aug-02-2019, 06:29 PM
RE: another problem :) - by Yoriz - Aug-02-2019, 07:16 PM
RE: another problem :) - by raymond2688 - Aug-02-2019, 07:42 PM
RE: another problem :) - by Yoriz - Aug-02-2019, 07:47 PM
RE: another problem :) - by ichabod801 - Aug-02-2019, 08:02 PM
RE: another problem :) - by raymond2688 - Aug-02-2019, 09:15 PM
RE: another problem :) - by raymond2688 - Aug-03-2019, 01:42 PM
RE: another problem :) - by ichabod801 - Aug-03-2019, 02:09 PM
RE: another problem :) - by raymond2688 - Aug-03-2019, 02:42 PM
RE: another problem :) - by raymond2688 - Aug-03-2019, 02:15 PM
RE: another problem :) - by ThomasL - Aug-03-2019, 02:38 PM
RE: another problem :) - by ichabod801 - Aug-03-2019, 03:35 PM
RE: another problem :) - by Yoriz - Aug-03-2019, 03:42 PM
RE: another problem :) - by raymond2688 - Aug-03-2019, 05:23 PM
RE: another problem :) - by raymond2688 - Aug-03-2019, 08:32 PM
RE: another problem :) - by ichabod801 - Aug-03-2019, 09:03 PM
RE: another problem :) - by raymond2688 - Aug-03-2019, 10:21 PM
RE: another problem :) - by ichabod801 - Aug-03-2019, 10:28 PM
RE: another problem :) - by raymond2688 - Aug-04-2019, 08:26 PM
RE: another problem :) - by ichabod801 - Aug-04-2019, 09:08 PM
RE: another problem :) - by raymond2688 - Aug-05-2019, 01:18 AM
RE: another problem :) - by ichabod801 - Aug-05-2019, 01:41 AM
RE: another problem :) - by raymond2688 - Aug-05-2019, 02:16 AM
RE: another problem :) - by ichabod801 - Aug-05-2019, 01:37 PM
RE: another problem :) - by raymond2688 - Aug-05-2019, 03:38 PM
RE: another problem :) - by anagarcia - Aug-22-2019, 10:02 AM

Forum Jump:

User Panel Messages

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