Re: [Tutor] Good approach regarding classes attributes

2014-09-06 Thread Juan Christian
Ops, sorry. Pastebin @ line 9: It's [JSON response lastlogoff] On Sun, Sep 7, 2014 at 12:00 AM, Juan Christian wrote: > I'm writing a program that have a 'User' class. This class will have the > following attributes: > > 1. id > 2. personaname > 3. lastlogoff > 4. profileurl > 5. avatar > 6. r

[Tutor] Good approach regarding classes attributes

2014-09-06 Thread Juan Christian
I'm writing a program that have a 'User' class. This class will have the following attributes: 1. id 2. personaname 3. lastlogoff 4. profileurl 5. avatar 6. realname 7. timecreated 8. loccountrycode I'm thinking about writing something like that: http://pastebin.com/7KHB2qQ8 Is it a good approac

Re: [Tutor] If statement The Python Tutorial 3.4.1

2014-09-06 Thread Alan Gauld
On 06/09/14 00:29, Gregory Donaldson wrote: This is what it looks like when I try to get it to work. x = int(input("Please enter an integer: ")) Please enter an integer: 42 if x < 0: x = 0 print('Negative changed to zero') I'm guessing that you actually indented the two lines above bu

Re: [Tutor] If statement The Python Tutorial 3.4.1

2014-09-06 Thread Joel Goldstick
On Fri, Sep 5, 2014 at 7:29 PM, Gregory Donaldson wrote: > I've tried to copy this example from the Tutorial into the Python Idle, but > it doesn't seem to recognize it. > > 4.1. if Statements¶ > > Perhaps the most well-known statement type is the if statement. For example: > > x = int(i

[Tutor] If statement The Python Tutorial 3.4.1

2014-09-06 Thread Gregory Donaldson
I've tried to copy this example from the Tutorial into the Python Idle, but it doesn't seem to recognize it. 4.1. if Statements¶ Perhaps the most well-known statement