[Tutor] Exercise suggestions

2011-01-22 Thread michael scott
I am new to programming, I intend to get an entry level job programming next year (or a little bit longer). I am switching fields and not going to college, but kinda "self teaching" myself through various methods. I currently understand concepts in programming in python up to classes (like I un

Re: [Tutor] print "Hello, World!"

2011-02-02 Thread michael scott
Hey doug please don't be discouraged..., and be glad you didn't start in C++ like me... talk about being discouraged... But anyways, I just started as well. I've only been programming like 5 months. So I understand you very much :) Here are some of the better (more clear) tutorials I ran across

Re: [Tutor] textbook question

2011-02-27 Thread michael scott
Hi, Justin, how are you? Most of the nice people here like to see that you try before you ask for help. So next time post some code that you have tried (and failed on) so they can see WHERE you are going wrong or WHAT is throwing you off. I'm a beginner too, also I am using How to Think Like a

Re: [Tutor] Help! (solution)

2011-03-04 Thread michael scott
I know that the question has long been answered (and probably due today), but I solved it and it was great exercise for me (as I'm not in college at the moment and I need assignments like these to gauge my skills). I'll probably build a gui for it tomorrow, just so I can practice at that. I wis

Re: [Tutor] Print/Loop Question

2011-03-17 Thread michael scott
Hi Jeff how are you today? Well about your question... I copy and pasted your code and it worked fine for me. Well except for in the code bit you posted you forgot to give a guess a value before it was referred to. So under number = 44 I just wrote guess = 0 and it worked fine. But perhaps

[Tutor] Saving information for my program

2011-03-21 Thread michael scott
I apologize now but I'm going to be spamming the tutor list as I have just decided to create an extremely ambitious project for someone of my level. Anyhow, I will start with my first question. How do I save user created information in python? In my progam I will have users input various "attr

Re: [Tutor] Checksum program

2011-03-23 Thread michael scott
Hi Lezlie, Well first off, let me admit I have no idea what checksums are (I be a noobz) and I can not help you with that part of your program at all, but there are lots of people here who can. But since you are new to python, let me comment on some of the general things I noticed in your cod

[Tutor] User Made Dictionaries

2011-03-28 Thread michael scott
Hello, I'm trying to find out the best course of action for the next stage of my program. I want to hold information on various idols. I first thought to do this with classes, but realised that I could represent the data the same way with a dictionary. So I am now just concentrating on diction

Re: [Tutor] Recommendations required

2011-04-04 Thread michael scott
Hello Ankur, Well as a beginner myself I suggest that you check out these games and modify them or create new versions of them (with additional functionality). There are lots of stock answers, but in general old arcade games from the 70's are great places to start. They are simple enough and yo

[Tutor] (sqlite3) Testing if a table has been created.

2011-04-05 Thread michael scott
Hello guys, Since sqlite gives an error if you try to create a table that's already there, how do I test if a table is already present? for example in def database(info): import sqlite3 connection = sqlite3.connect("test.db") cursor = connection.cursor() if table not in test.d

Re: [Tutor] (sqlite3) Testing if a table has been created.

2011-04-06 Thread michael scott
From: Joel Goldstick To: michael scott Cc: tutor@python.org Sent: Wed, April 6, 2011 8:30:17 AM Subject: Re: [Tutor] (sqlite3) Testing if a table has been created. On Tue, Apr 5, 2011 at 9:59 PM, michael scott wrote: Hello guys, > >Since sqlite gi

Re: [Tutor] (sqlite3) Testing if a table has been created.

2011-04-06 Thread michael scott
From: Andre Engels To: michael scott Cc: tutor@python.org Sent: Wed, April 6, 2011 10:19:53 AM Subject: Re: [Tutor] (sqlite3) Testing if a table has been created. On Wed, Apr 6, 2011 at 4:06 PM, michael scott wrote: Is this really a python tutor question

Re: [Tutor] Help - accumulator not working (Lea)

2011-04-15 Thread michael scott
Hi Lea, how are you today? Well please keep in mind that nothing is "wrong" with your code, its doing exactly what you asked it to do. But I would call your attention to your while loop, you want to accumulate things, but may I ask exactly what are you accumulating in your loop? Also quite b

[Tutor] python timers

2011-04-20 Thread michael scott
Hello how do you do. Today's question has to do with the time module. I want to add a timer to my gui. As I was messing around with it I found a way to measure time... but I'm positive there is a more elegant way to deal with this than what I've thrown together. def thing(): start =

[Tutor] after(), how do I use it?

2011-04-25 Thread michael scott
Hello, I asked for help in another location and it solved my problem, but the only problem is I don't fully understand the after function. Here is part of the code that was given to me. def print_label_slowly(self, message): '''Print a label one character at a time using the event

Re: [Tutor] after(), how do I use it?

2011-04-25 Thread michael scott
Bark To: tutor@python.org Sent: Mon, April 25, 2011 8:50:16 PM Subject: Re: [Tutor] after(), how do I use it? On 26/04/11 01:36, michael scott wrote: > Hello, I asked for help in another location and it solved my problem, but the >only problem is I don't fully understand the a

Re: [Tutor] after(), how do I use it?

2011-04-25 Thread michael scott
is it about you... that intrigues me so? From: Wayne Werner To: michael scott Cc: tutor@python.org Sent: Mon, April 25, 2011 9:15:10 PM Subject: Re: [Tutor] after(), how do I use it? On Mon, Apr 25, 2011 at 8:02 PM, michael scott wrote: Here is the code i

[Tutor] Making a script part of the terminal

2011-05-20 Thread michael scott
Okay, my title might be undescriptive, let me try to explain it better. I want to take a script I've written and make it usable by typing its name in the terminal. Perfect example is the python interpreter. You just type in the word python to the terminal and then the interpreter runs. I know ot

Re: [Tutor] Making a script part of the terminal

2011-05-20 Thread michael scott
u... that intrigues me so? From: James Reynolds To: michael scott Cc: tutor@python.org Sent: Fri, May 20, 2011 1:57:57 PM Subject: Re: [Tutor] Making a script part of the terminal We just had a similar question yesterday. Just make sure Python is on your PATH. CD to the dir

Re: [Tutor] Making a script part of the terminal

2011-05-20 Thread michael scott
Thank you gentlemen so much, I believe I have all that I need to do what I wish. What is it about you... that intrigues me so?___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/list

[Tutor] Python and the web

2011-05-22 Thread michael scott
I want to start getting into web site development. I already know basic html and css, which will create a basic webpage. But my question is what exactly does python bring to the web? Are forums, blogs, flash sites, etc the results of web programming or can they all be achieved with standard ht

Re: [Tutor] Non programmer wanting to become programmer

2011-05-26 Thread michael scott
I am a beginner so I can relate with you, although python is my first programming language, it sounds as if you are coming from another language. Either way, here are some sites I'll collected that have tutorials and are free. Alan's tutorial (alan is a very active member here) http://www.freene

Re: [Tutor] Class methods

2011-06-22 Thread michael scott
Just to add a little to Alexandre's answer.  You can keep most of the code the same just add in        farmlet[0].eat()     farmlet[1].eat() and it will be okay... kinda. Or you could rewrite it and  do it another way...  I'm guessing that you are using python 3 by your print sta