Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Average score
#6
Please use python tags for your code. You were asked once already.

The error you are getting is because you entered something that is not a floating point integer. It depends on what you entered. To avoid this you would check for correct input before/while you convert to float. There are several ways to do this, I'm not sure what you have covered so far. I would typically use try/except or sets.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
Reply


Messages In This Thread
Average score - by MartinEvtimov - Mar-29-2017, 04:19 PM
RE: Average score - by nilamo - Mar-29-2017, 04:53 PM
RE: Average score - by Larz60+ - Mar-29-2017, 05:04 PM
RE: Average score - by zivoni - Mar-29-2017, 10:13 PM
RE: Average score - by MartinEvtimov - Apr-02-2017, 06:15 PM
RE: Average score - by ichabod801 - Apr-02-2017, 07:35 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to update score value? Mavoz 5 2,499 Nov-08-2022, 12:37 AM
Last Post: Mavoz

Forum Jump:

User Panel Messages

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