Re: [Tutor] data storage question

2016-08-01 Thread Danny Yoo
One other thing: you might hear another popular approach is to use the "pickle" module. I don't think it'd be appropriate for your situation because it would be overkill for the problem you're describing. JSON is safer: if you have to choose between JSON and pickle, use JSON. --- More curmudgeo

Re: [Tutor] data storage question

2016-08-01 Thread Danny Yoo
I agree with Steven; JSON is probably one of the most popular formats for saving structured data externally, and it's probably the lightweight approach to use in this situation. By the way, it looks like you're already dealing with a certain file format in your program. In fact, it looks like a s

Re: [Tutor] Python Assignment

2016-08-01 Thread Danny Yoo
On Mon, Aug 1, 2016 at 8:18 AM, Justin Korn via Tutor wrote: > To whom it may concern, > I need someone to help me to develop programs for the following assignments. You've asked a few questions earlier: https://mail.python.org/pipermail/tutor/2016-July/109403.html https://mail.python.

Re: [Tutor] data storage question

2016-08-01 Thread Steven D'Aprano
On Mon, Aug 01, 2016 at 04:47:32PM -0400, Colby Christensen wrote: > I'm a novice programmer. I have a decent understanding of algorithms > but I don't have a lot of computer science/software engineering > experience. As a way to help me learn, I've begun a coordinate > geometry program similar

Re: [Tutor] Variables

2016-08-01 Thread Steven D'Aprano
On Mon, Aug 01, 2016 at 01:26:19PM -0600, Palmer Gutke wrote: > I'm trying to write a program w/ python that runs once a day and every time > it does it adds 20 to a variable. How do I do this so it doesn't reset the > variable to the original value every time I run it? You have to read the variab

[Tutor] Variables

2016-08-01 Thread Palmer Gutke
I'm trying to write a program w/ python that runs once a day and every time it does it adds 20 to a variable. How do I do this so it doesn't reset the variable to the original value every time I run it? Thanks ___ Tutor maillist - Tutor@python.org To un

[Tutor] data storage question

2016-08-01 Thread Colby Christensen
I'm a novice programmer. I have a decent understanding of algorithms but I don't have a lot of computer science/software engineering experience. As a way to help me learn, I've begun a coordinate geometry program similar to the COGO program developed years ago at MIT. Currently, I store the poin

[Tutor] Python Assignment

2016-08-01 Thread Justin Korn via Tutor
To whom it may concern, I need someone to help me to develop programs for the following assignments. I have been working on these assignments for a week and a half, and I can't make any progress. I also been dealing with a sick relative, so please help me out immediately. I use the version 3.4.

Re: [Tutor] Book recommendation

2016-08-01 Thread Danny Yoo
> One area that is especially troublesome is knowledge of > math. Programming is rooted in math and professional > programmers will have studied math in depth but many > amateur beginners may only have junior school math > level. But how do you find out? > > It's a perennial problem when experts tr

Re: [Tutor] Book recommendation

2016-08-01 Thread Alan Gauld via Tutor
On 01/08/16 00:14, D Wyatt wrote: > answers I could understand from you all. While I appreciate the time and > effort you put in helping us out, most of you do not remember what you > didn't used to know, and are often less than helpful because of this. That's a fair point. After 20, 30 or, as

Re: [Tutor] Book recommendation

2016-08-01 Thread John Wong
On Sun, Jul 31, 2016 at 7:14 PM, D Wyatt wrote: > Hello. I've been a member of this group for a very long time and have > played with Python for years, but have never gotten past being a beginner > for various reasons. I just discovered a very good, free book, that is > answering many of the qu