On Thu, Oct 26, 2017 at 3:02 PM, Chris Coleman wrote:
>
> i wrote these programs and saved them per instructions on page 128 and 129
> in the book "python in easy steps".
>
> class Person:
> '''A base class to define Person properties.'''
> def__init__(self,name):
The above line should ge
On 26/10/17 21:02, Chris Coleman wrote:
> i wrote these programs and saved them per instructions on page 128 and 129
> in the book "python in easy steps".
I don't know the book but...
>
> class Person:
> '''A base class to define Person properties.'''
> def__init__(self,name):
> s
On 13/10/17 18:53, Alan Gauld via Tutor wrote:
> On 13/10/17 13:04, Chris Coleman wrote:
>
>> def_init_(self,chat):
>
>> File "scripts/bird.py", line 4
>> def_init_(self,chat):
>> ^
>> SyntaxError: invalid syntax
>
> There are two problems here.
I meant to
On 13/10/17 13:04, Chris Coleman wrote:
just learning python as my first programming language. going through the
book "python in easy steps" by mike mcgrath. i am going through the
programs in chapter 7 and can't get them to work. here is the first one in
the chapter:
class Bird:
'''A bas
On 13/10/17 13:04, Chris Coleman wrote:
> def_init_(self,chat):
> File "scripts/bird.py", line 4
> def_init_(self,chat):
> ^
> SyntaxError: invalid syntax
There are two problems here.
The first is that you need a space after the def.
The second is that ther