[Tutor] Question on running a small Python program

dn PyTutor at DancesWithMice.info
Thu Aug 13 22:41:48 EDT 2020


On 14/08/2020 11:17, Joel Goldstick wrote:
> On Thu, Aug 13, 2020 at 7:15 PM eric grunfeld <grunfelderic at gmail.com> wrote:
>> I have been working on this small program in Python.
...

>> This has been my error message: Error on line 4: if denominator != 0 ^
>> SyntaxError: invalid syntax
>>
>> I look forward to your thoughts on this.


Are you attempting a training course or using a text-book? If so, which one?

FYI: Are you aware of the extensive documentation available from 
https://docs.python.org/3/index.html (which includes a tutorial 
discussing if-statements as "4. More Control Flow Tools".
-- 
Regards =dn


More information about the Tutor mailing list