Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python bugging
#8
(Jul-07-2017, 05:15 PM)Basilis Wrote: firstly i put lot of parenthesis and semi-colons bc its more familiar to me due to javascript!
No, firstly this is Python not javascript. If you want to write javascript, than do so, otherwise follow the rules for Python. If you don't you are only going to run into problems, not to mention you're not going to get much help here if you don't show some effort.

Look at the code I gave you (which works) and compare it to the rest of your 'spaghetti' code (which doesn't). By the way, you should have gotten an error at line 8 since you never defined the variable "score" before using it, which you should have posted in it's entirety (between the 'error' tags)
If it ain't broke, I just haven't gotten to it yet.
OS: Windows 10, openSuse 42.3, freeBSD 11, Raspian "Stretch"
Python 3.6.5, IDE: PyCharm 2018 Community Edition
Reply


Messages In This Thread
Python bugging - by Basilis - Jul-06-2017, 02:11 PM
RE: Python bugging - by sparkz_alot - Jul-06-2017, 03:22 PM
RE: Python bugging - by Basilis - Jul-06-2017, 10:32 PM
RE: Python bugging - by ichabod801 - Jul-07-2017, 12:33 AM
RE: Python bugging - by Basilis - Jul-07-2017, 11:09 AM
RE: Python bugging - by sparkz_alot - Jul-07-2017, 01:12 PM
RE: Python bugging - by Basilis - Jul-07-2017, 05:15 PM
RE: Python bugging - by sparkz_alot - Jul-07-2017, 07:32 PM
RE: Python bugging - by Basilis - Jul-07-2017, 07:41 PM
RE: Python bugging - by nilamo - Jul-07-2017, 08:51 PM
RE: Python bugging - by Basilis - Jul-08-2017, 09:58 AM

Forum Jump:

User Panel Messages

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