Re: [Tutor] issues running python

2019-03-26 Thread Alan Gauld via Tutor
On 26/03/2019 21:41, Drew Jakala wrote: > Hello, > I'm having issues running python and sublime on my computer. Every time I > try to run either one I get an error message that looks something like this: > "Traceback (most recent call last): > File "", line 1, in > python > NameError: name

[Tutor] issues running python

2019-03-26 Thread Drew Jakala
Hello, I'm having issues running python and sublime on my computer. Every time I try to run either one I get an error message that looks something like this: "Traceback (most recent call last): File "", line 1, in python NameError: name 'python' is not defined I think I need to edit my path

Re: [Tutor] (no subject)

2019-03-26 Thread Matthew Herzog
elif fileDate = datetime.strptime(name[0:8], DATEFMT).date(): ^ SyntaxError: invalid syntax On Sat, Mar 23, 2019 at 6:43 PM Mats Wichmann wrote: > On 3/23/19 3:16 AM, Peter Otten wrote: > > > Personally I would use a try...except clause because with that you can > > handle

Re: [Tutor] (no subject)

2019-03-26 Thread Mats Wichmann
On 3/26/19 12:26 PM, Matthew Herzog wrote: > elif fileDate = datetime.strptime(name[0:8], DATEFMT).date(): >                    ^ > SyntaxError: invalid syntax are you assigning (=) or comparing (==)? you can't do both in one statement because of the side effect implications. [except that starti

Re: [Tutor] How to store scores of a race's players

2019-03-26 Thread Bob Gailer
Please do not use a mangled return email address. It causes us a lot of pain when we fail to read your address to fix it and get the message bounced back. The only reason I'm even bothering to resend it is because I put a lot of work into it.: > On > Mar 26, 2019 6:55 AM, "^Bart" wrote: > > > > He

Re: [Tutor] How to store scores of a race's players

2019-03-26 Thread Bob Gailer
On Mar 26, 2019 6:55 AM, "^Bart" wrote: > > Hello! > > I need to store scores of three players for more than a race, after every race the user will read "Is the competition finished?", if the competition if finished the user will see the winner who got higest score: > Thank you for reaching out to