Re: [Tutor] Creating a pojo in python

2015-02-08 Thread Danny Yoo
On Feb 8, 2015 11:21 PM, "rakesh sharma" wrote: > > How can one create a POJO in python.I mean a class like this > class A { private a; private b; public getA() { return a; } public getB() { return b }} > I tried creating class in python but the variables were accessible as p

[Tutor] Creating a pojo in python

2015-02-08 Thread rakesh sharma
How can one create a POJO in python.I mean a class like this class A { private a; private b; public getA() { return a; } public getB() { return b }} I tried creating class in python but the variables were accessible as public data members. Any help?

Re: [Tutor] Explanation of this print statement

2015-02-08 Thread Dave Angel
On 02/08/2015 06:01 PM, Shawn Byers wrote: Hello I was wondering if someone could explain this print statement for r in range(6,0,-1): print((6-r)*''+r*'o') You probably intended to have a blank between the first two single-quotes. for r in range(6,0,-1): print((6-r)*'

Re: [Tutor] Explanation of this print statement

2015-02-08 Thread Mark Lawrence
On 09/02/2015 00:19, Alan Gauld wrote: On 08/02/15 23:01, Shawn Byers wrote: Hello I was wondering if someone could explain this print statement for r in range(6,0,-1): print((6-r)*''+r*'o') Have you tried running it? Do you see what it is doing? Try evaluating range(6,0,-1) at the

Re: [Tutor] Explanation of this print statement

2015-02-08 Thread Alan Gauld
On 08/02/15 23:01, Shawn Byers wrote: Hello I was wondering if someone could explain this print statement for r in range(6,0,-1): print((6-r)*''+r*'o') Have you tried running it? Do you see what it is doing? Try evaluating range(6,0,-1) at the interpreter (you may want to convert i

[Tutor] Explanation of this print statement

2015-02-08 Thread Shawn Byers
Hello I was wondering if someone could explain this print statement for r in range(6,0,-1): print((6-r)*''+r*'o') ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tut

Re: [Tutor] Need help writing code with python

2015-02-08 Thread Ben Finney
Alan Gauld writes: > Third, > The attachment didn't get here. So I've no idea what your assignment > was. Its usually better to copy the text into the mail body. Given that the attachment was described as “my project”, I would advise not sending it here in any form. Copy text here if it's *smal

Re: [Tutor] Need help writing code with python

2015-02-08 Thread Dave Angel
On 02/07/2015 05:36 PM, Conner Wood wrote: I fell behind 2 weeks in my class due to surgery and have a coding project due tonight (Saturday, Feb. 7). I've attached my project to this email. Please help! Also, I'm using a Mac laptop if that helps in anyway. Please get back to me as soon as you

Re: [Tutor] Need help writing code with python

2015-02-08 Thread Alan Gauld
On 07/02/15 22:36, Conner Wood wrote: I fell behind 2 weeks in my class due to surgery and have a coding project due tonight (Saturday, Feb. 7). I've attached my project to this email. Please help! Also, I'm using a Mac laptop if that helps in anyway. Please get back to me as soon as you can.

Re: [Tutor] Need help writing code with python

2015-02-08 Thread Ben Finney
Conner Wood writes: > I fell behind 2 weeks in my class due to surgery and have a coding > project due tonight (Saturday, Feb. 7). I've attached my project to > this email. My sympathies with your situation, I hope your surgery was successful and you are in good health. This is not a forum for

[Tutor] Need help writing code with python

2015-02-08 Thread Conner Wood
I fell behind 2 weeks in my class due to surgery and have a coding project due tonight (Saturday, Feb. 7). I've attached my project to this email. Please help! Also, I'm using a Mac laptop if that helps in anyway. Please get back to me as soon as you can. Thanks, Conner Wood ___