Python Forum
Trivia2 Loop problem?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Trivia2 Loop problem?
#3
Thank you for helping, I am still finding the problem of if I do not cast points as an int, it will immediately come up with

[output]
Traceback (most recent call last):
 File "C:\Users\milll929\Downloads\Mills_17_Trivia.py", line 81, in <module>
   main()
 File "C:\Users\milll929\Downloads\Mills_17_Trivia.py", line 68, in main
   score += points
TypeError: unsupported operand type(s) for +=: 'int' and 'str'
Reply


Messages In This Thread
Trivia2 Loop problem? - by milll929 - Jun-06-2017, 02:08 PM
RE: Trivia2 Loop problem? - by nilamo - Jun-06-2017, 04:13 PM
RE: Trivia2 Loop problem? - by milll929 - Jun-06-2017, 11:27 PM
RE: Trivia2 Loop problem? - by ichabod801 - Jun-07-2017, 12:46 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Problem with for loop Intellectual11 5 2,823 Aug-26-2021, 04:14 PM
Last Post: naughtyCat

Forum Jump:

User Panel Messages

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