Re: [Tutor] Practice python
On Sun, May 8, 2016 at 12:14 PM, monik...@netzero.net wrote: > Can you please recommend a free web class or site that offers lots of coding > exercises in python, not just the beginning but also intermediate and > advanced AND provides solutions. I need more practice. All the classes I have > taken or looked at do not provide enough exercises (with solutions) to retain > the info. You might look into the MIT Open Courseware. Once you get into the meat of the material the programming exercises get increasingly challenging. There are also copies of exams, quizzes, etc. However, if memory serves me correctly, they may still be using Python 2. Also, you can poke around in both their electrical engineering and computer science departments. Sometimes they cover the same type of material at different paces and levels of difficulty. Stanford also has some courses, but the last time I went looking there I was checking out Java. Anyway, one MIT link is: http://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-00sc-introduction-to-computer-science-and-programming-spring-2011/index.htm -- boB ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Practice python
I like the euler project On Sun, May 8, 2016 at 8:00 PM, Alan Gauld via Tutor wrote: > On 08/05/16 18:14, monik...@netzero.net wrote: > >> Can you please recommend a free web class or site that offers >> lots of coding exercises in python, > > Have you tried the Python Challenge web site? > >> ... intermediate and advanced AND provides solutions. > > The challenge site gets pretty advanced as you progress but > there is usually an easy(ish) and a hard solution and you > don't get shown a "correct" one - because correct doesn't > make any real sense - you just know you got the right > answer when you make it to the next level. > > But it certainly helps you grow as a Python programmer > and it especially gets you familiar with the library. > >> I need more practice. > > Often the best practice is to do. > Just pick a real project and wade in. > >> All the classes I have taken or looked at do not provide >> enough exercises (with solutions) to retain the info. > > I'm always wary of "solutions". They can only ever be the > authors best attempt but there will always be other, > equally legitimate solutions. In my recent book I took > pains to make the point that the "solutions" were only > one possible way of doing it and if a reader did it > another way that was probably fine too. > > I know a lot of people like exercises (and solutions) > in books and tats why I provide them, but personally > I've never done them in any programming book I've > read (and that means dozens), instead I solve my > own problems, even ones I've already solved in > other languages... > > You will always learn far more from real world problem > solving than from, any artificial exercise/solution. > > -- > Alan G > Author of the Learn to Program web site > http://www.alan-g.me.uk/ > http://www.amazon.com/author/alan_gauld > Follow my photo-blog on Flickr at: > http://www.flickr.com/photos/alangauldphotos > > > ___ > Tutor maillist - Tutor@python.org > To unsubscribe or change subscription options: > https://mail.python.org/mailman/listinfo/tutor -- Joel Goldstick http://joelgoldstick.com/blog http://cc-baseballstats.info/stats/birthdays ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Practice python
On 08/05/16 18:14, monik...@netzero.net wrote: > Can you please recommend a free web class or site that offers > lots of coding exercises in python, Have you tried the Python Challenge web site? > ... intermediate and advanced AND provides solutions. The challenge site gets pretty advanced as you progress but there is usually an easy(ish) and a hard solution and you don't get shown a "correct" one - because correct doesn't make any real sense - you just know you got the right answer when you make it to the next level. But it certainly helps you grow as a Python programmer and it especially gets you familiar with the library. > I need more practice. Often the best practice is to do. Just pick a real project and wade in. > All the classes I have taken or looked at do not provide > enough exercises (with solutions) to retain the info. I'm always wary of "solutions". They can only ever be the authors best attempt but there will always be other, equally legitimate solutions. In my recent book I took pains to make the point that the "solutions" were only one possible way of doing it and if a reader did it another way that was probably fine too. I know a lot of people like exercises (and solutions) in books and tats why I provide them, but personally I've never done them in any programming book I've read (and that means dozens), instead I solve my own problems, even ones I've already solved in other languages... You will always learn far more from real world problem solving than from, any artificial exercise/solution. -- Alan G Author of the Learn to Program web site http://www.alan-g.me.uk/ http://www.amazon.com/author/alan_gauld Follow my photo-blog on Flickr at: http://www.flickr.com/photos/alangauldphotos ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Best Practices with JSON Data
On 08/05/16 14:07, Hunter Jozwiak wrote: > I am intending to start work on a Python program that will allow me to > better manage my Digital Ocean droplets, due to the fact that the website > can be at times a bit overkill for some of the basic tasks I want to do. OK, but I have absolutely no idea what Digital ocean is, nor what a droplet is. So we may need more background later. > have a question in regards to the best practice of manipulating JSON data. > Would it be better to just parse the data that Digital Ocean returns as a > result of doing such things as a Get command, or would it be better to > create a Droplet class with functionality specific to Droplets? That really depends on what you plan on doing. If you need to do a lot of processing of the data or using it in interaction with other objects/data then a class might make sense. But if you just want to collect data into a data store (file or dbms) or filter out some reports then just reading the JSON is probably fine. > am asking is due to the fact that I haven't found any good information on > the topic, so am not sure of the Pythonic or standard way to do this. There's probably no information about droplets except on the Digital Ocean forums (assuming such things exist!). But the general approach in Python is to do whatever makes most sense. Don't over complicate things but don't over simplify either. It all depends on what you need to do. -- Alan G Author of the Learn to Program web site http://www.alan-g.me.uk/ http://www.amazon.com/author/alan_gauld Follow my photo-blog on Flickr at: http://www.flickr.com/photos/alangauldphotos ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Best Practices with JSON Data
On Sun, May 8, 2016, 12:34 PM Hunter Jozwiak wrote: > Hello, > > > > I am intending to start work on a Python program that will allow me to > better manage my Digital Ocean droplets, due to the fact that the website > can be at times a bit overkill for some of the basic tasks I want to do. I > have a question in regards to the best practice of manipulating JSON data. > Would it be better to just parse the data that Digital Ocean returns as a > result of doing such things as a Get command, or would it be better to > create a Droplet class with functionality specific to Droplets? The reason > I > am asking is due to the fact that I haven't found any good information on > the topic, so am not sure of the Pythonic or standard way to do this. > Go the route of least complexity until you need to refactor. Start with basic collections. Define a class later, if ever. > ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
[Tutor] Practice python
HI: Can you please recommend a free web class or site that offers lots of coding exercises in python, not just the beginning but also intermediate and advanced AND provides solutions. I need more practice. All the classes I have taken or looked at do not provide enough exercises (with solutions) to retain the info. Thank you very much Monika Scribol.com 20 Female Celebrities Who Are Totally Different in Real Life http://thirdpartyoffers.netzero.net/TGL3241/572f744288d8074424f2est01duc ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Best Practices with JSON Data
On Sun, May 8, 2016 at 6:07 AM, Hunter Jozwiak wrote: > Hello, > > > > I am intending to start work on a Python program that will allow me to > better manage my Digital Ocean droplets It sounds like you're using the DigitalOcean API described in https://developers.digitalocean.com/documentation/v2/ > Would it be better to just parse the data that Digital Ocean returns as a > result of doing such things as a Get command, or would it be better to > create a Droplet class with functionality specific to Droplets? If I understand you rightly, then either approach is arguably ok. It really depends on what you'll intend to do in the short/medium/long term, and how much you already understand about the final shape of things. The first approach sounds like you'll take the JSON and pull just the minimal information that you care about. I think that, in your second proposal, you're talking about processing everything in the JSON response, even the stuff that you're not immediately caring about at this moment. I believe the question you're asking is essentially: bottom-up, or top-down? If it's just for your own one-off usage, and no one else has done much, I'd prefer the first, because it's going to be less work, and you can make certain simplifying assumptions to make your program short, since you know exactly what parts of the JSON you can ignore. Since you are starting off, you may not necessarily know the appropriate structure of all the classes yet. Rather than commit to a particular top-down design, you might want to just do the simplest thing first, get some exposure, and then build up from that experience. By the way, it does look like there are some Python libraries provided by the DigitalOcean folks: you might want to take a look at them: https://developers.digitalocean.com/libraries/ and perhaps you can reuse those libraries. Good luck to you! ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
[Tutor] Best Practices with JSON Data
Hello, I am intending to start work on a Python program that will allow me to better manage my Digital Ocean droplets, due to the fact that the website can be at times a bit overkill for some of the basic tasks I want to do. I have a question in regards to the best practice of manipulating JSON data. Would it be better to just parse the data that Digital Ocean returns as a result of doing such things as a Get command, or would it be better to create a Droplet class with functionality specific to Droplets? The reason I am asking is due to the fact that I haven't found any good information on the topic, so am not sure of the Pythonic or standard way to do this. Thanks, Hunter ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] META: Moderation and subscription to the tutor list
On 08/05/16 08:59, Alan Gauld via Tutor wrote: > This means you can get > - single emails (default) > - emails plus digest - digest and no emails > - neither (this is my choice because I read via gmane) Sorry, I missed an option... -- Alan G Author of the Learn to Program web site http://www.alan-g.me.uk/ http://www.amazon.com/author/alan_gauld Follow my photo-blog on Flickr at: http://www.flickr.com/photos/alangauldphotos ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] META: Moderation and subscription to the tutor list
On Sun, May 08, 2016 at 08:59:01AM +0100, Alan Gauld via Tutor wrote: > On 01/05/16 05:18, Steven D'Aprano wrote: > > > ...(And I think we should default to > > individual emails, not daily digest.) > > It took me a little while to find this one, but I've checked > and the default is to receive individual emails. You need to > opt-in to get the digests and opt-out to stop getting emails. Thanks for checking! -- Steve ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] META: Moderation and subscription to the tutor list
On 01/05/16 05:18, Steven D'Aprano wrote: > ...(And I think we should default to > individual emails, not daily digest.) It took me a little while to find this one, but I've checked and the default is to receive individual emails. You need to opt-in to get the digests and opt-out to stop getting emails. This means you can get - single emails (default) - emails plus digest - neither (this is my choice because I read via gmane) -- Alan G Author of the Learn to Program web site http://www.alan-g.me.uk/ http://www.amazon.com/author/alan_gauld Follow my photo-blog on Flickr at: http://www.flickr.com/photos/alangauldphotos ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor