Forum: Python Jun 30th, 2009 |
| Replies: 4 Views: 302 you could try eclipse, with some plug-in if you want a fully featured IDE.
what i do personally, is usually use it notepad++, which provides basic syntax highlighting. in a learning process there... |
Forum: Python Jun 23rd, 2009 |
| Replies: 7 Views: 352 it's ususally the simple "bugs/fixes" that are the hardest to see because they are simply overlooked. good luck with the GUI, unfortunately i haven't dealt with python GUIs before, but i'm sure... |
Forum: Python Jun 23rd, 2009 |
| Replies: 7 Views: 352 just move the entry/start point of your game into a function, and then at the end of that function (even after) you can give the use the option to "play again". |
Forum: Python Jan 16th, 2009 |
| Replies: 13 Views: 764 I highly doubt he wants your code to match his, the chance of code being identical is usually rare and should raise concerns of plagarism. Anyway, have you got any further? |
Forum: Python Jan 16th, 2009 |
| Replies: 13 Views: 764 Is this a programming course or a business course? If it is a programming course, I think "exactly like that" is taking him too literally, as learning looping/control is much better than trying to... |
Forum: Python Jan 15th, 2009 |
| Replies: 13 Views: 764 sum(sequence)
you are not giving it a sequence |
Forum: Python Dec 19th, 2008 |
| Replies: 18 Views: 905 I think you will find a math library for python (I am not 100% on this, but it would make sense). If you look through it, it will also probably have some random function. If it is like most random... |
Forum: Python Dec 19th, 2008 |
| Replies: 18 Views: 905 I've replied and fixed it up for you. There were 2 issues I fixed:
1. def means defining a function, not calling, so "def main:" should only appear once in your code
2. you didn't have any function... |
Forum: Python Dec 19th, 2008 |
| Replies: 18 Views: 905 nope, before main you will see "def". This means that everything within the block (in jython the block will be defined with indenting) belongs to "main". So you need to define your functions... |
Forum: Python Dec 19th, 2008 |
| Replies: 18 Views: 905 Ok, so your program is going to end when it has no code left to execute (which you probably already know). For you to get the behaviour explained above, you will probably need to execute parts of the... |
Forum: Python Dec 19th, 2008 |
| Replies: 18 Views: 905 That looks great, I ran it quickly and it works well.
You shouldn't look to me for directions, they are in your problem definition. If I were solving this problem, I would probably next look at... |
Forum: Python Dec 19th, 2008 |
| Replies: 18 Views: 905 Ok, well you not going to be convincing me to do your assignment for you, but I am happy to help. Once you start producing code, I can help you with more specific issues.
Anyway, basic of basics:... |
Forum: Python Dec 19th, 2008 |
| Replies: 18 Views: 905 Leave the graphics till last. First, create a program which is able to read / write to the command-line e.g. ask a question, recieve an answer. If you get that working, adding the random aspect and... |