Re: Why is my class undefined?

2017-08-17 Thread alister via Python-list
On Wed, 16 Aug 2017 18:02:48 -0700, Sayth Renshaw wrote: > On Thursday, 17 August 2017 09:03:59 UTC+10, Ian wrote: > wrote: >> > Morning >> > >> > I haven't ventured into classes much before. When trying to follow >> > some examples and create my own classes in a jupyter notebook I >> > receive

Re: Why is my class undefined?

2017-08-16 Thread Sayth Renshaw
On Thursday, 17 August 2017 09:03:59 UTC+10, Ian wrote: wrote: > > Morning > > > > I haven't ventured into classes much before. When trying to follow some > > examples and create my own classes in a jupyter notebook I receive an error > > that the class is undefined. > > > > So I created for pr

Re: Why is my class undefined?

2017-08-16 Thread Jan Erik Moström
On 17 Aug 2017, at 0:48, Sayth Renshaw wrote: > what exactly am I doing wrong? Outdent the if-statement = jem -- https://mail.python.org/mailman/listinfo/python-list

Re: Why is my class undefined?

2017-08-16 Thread Ian Kelly
On Wed, Aug 16, 2017 at 4:48 PM, Sayth Renshaw wrote: > Morning > > I haven't ventured into classes much before. When trying to follow some > examples and create my own classes in a jupyter notebook I receive an error > that the class is undefined. > > So I created for practise a frog class > >

Why is my class undefined?

2017-08-16 Thread Sayth Renshaw
Morning I haven't ventured into classes much before. When trying to follow some examples and create my own classes in a jupyter notebook I receive an error that the class is undefined. So I created for practise a frog class class frog(object): def __init__(self, ftype, word):