Re: New to working with APIs, any good tutorials/books/guides?

2014-02-21 Thread ApathyBear
Thanks, I think I have an understanding of what they are, but now am still a little confused on how one goes about using it: how am I supposed to know how to use an API in python? or in any other language for that matter? If an API is defining rules in C, is all hope lost for trying to use it in

New to working with APIs, any good tutorials/books/guides?

2014-02-21 Thread ApathyBear
I don't understand how APIs work to save my life. I am a complete beginner. In fact, I am a bit confused on what API even means and what the meaning entails. I am fairly competent with python, though I do lack some real world experience. Regardless, any tutorials/books/guides that deal with API

Re: Cannot figure out line of code, also not understanding error

2014-02-20 Thread ApathyBear
Thank you Chris. And thank you to everyone else. This has tremendously helped me. This google group is definitely the best place for python questions/discussion. PS: Chris, I will be looking at that tutorial now. -- https://mail.python.org/mailman/listinfo/python-list

Re: Cannot figure out line of code, also not understanding error

2014-02-20 Thread ApathyBear
On Thursday, February 20, 2014 12:54:54 AM UTC-8, Chris Angelico wrote: >Calling a class will create a new instance of it. [1] What you do with >it afterwards is separate. Okay. So what you are saying is that return(Athlete(temp1.pop(0),temp1.pop(0), temp1)) IS in fact creating an instance of

Re: Cannot figure out line of code, also not understanding error

2014-02-20 Thread ApathyBear
Thanks for pointing out the missing parenthesis, it makes sense now why there was an error. I suppose my question now is (and forgive my ignorance about classes, this is my first time learning them) why is it calling Athlete with some arguments? In order to make a class object, don't you need t

Cannot figure out line of code, also not understanding error

2014-02-19 Thread ApathyBear
I have two questions that come along with the following code: -- from __future__ import print_function def sanitize(time): if '-' in time: splitter = '-' (mins,secs) = time.split(splitter,