Re: [Tutor] create class Pet

2015-06-17 Thread Alan Gauld
On 17/06/15 20:43, Stephanie Quiles wrote: You are right I don't understand functions very well still. This prompts the next question is there a book or online resource that you suggest I look at? Right now I am using a text book provides by the instructor called Starting Out With Python 3rd e

Re: [Tutor] create class Pet

2015-06-17 Thread Stephanie Quiles
You are right I don't understand functions very well still. This prompts the next question is there a book or online resource that you suggest I look at? Right now I am using a text book provides by the instructor called Starting Out With Python 3rd ed. Anything you can suggest I reference wou

Re: [Tutor] create class Pet

2015-06-17 Thread Alan Gauld
On 16/06/15 21:15, Stephanie Quiles wrote: sorry this is the correct error. File "/Users/stephaniequiles/PycharmProjects/untitled3/pets.py", line 7, in main pet.get_name(name, animal_type, age) AttributeError: 'module' object has no attribute 'get_name' There are several errors in

Re: [Tutor] create class Pet

2015-06-16 Thread Stephanie Quiles
> sorry this is the correct error. it allows me to enter name and age but then > i get the message: /Library/Frameworks/Python.framework/Versions/3.4/bin/python3.4 /Users/stephaniequiles/PycharmProjects/untitled3/pets.py what is the name of the pet?: riley Please enter a type of pet: cat Enter

Re: [Tutor] create class Pet

2015-06-16 Thread Mark Lawrence
On 16/06/2015 17:45, Stephanie Quiles wrote: Hello, Having trouble figuring out why this program is not running. could someone please take a look and see where I am going wrong? Here is the error message i am getting : /Library/Frameworks/Python.framework/Versions/3.4/bin/python3.4 /Users/ste

Re: [Tutor] create class Pet

2015-06-16 Thread Alan Gauld
On 16/06/15 17:45, Stephanie Quiles wrote: File "/Users/stephaniequiles/PycharmProjects/untitled3/pets.py", line 2, in def main(get_name=name): NameError: name 'name' is not defined There is an inconsistency here. The code you have shown does not match the error. The error says the d

[Tutor] create class Pet

2015-06-16 Thread Stephanie Quiles
Hello, Having trouble figuring out why this program is not running. could someone please take a look and see where I am going wrong? Here is the error message i am getting : /Library/Frameworks/Python.framework/Versions/3.4/bin/python3.4 /Users/stephaniequiles/PycharmProjects/untitled3/pets.py