[Tutor] minecraft and python

2012-03-15 Thread Hadi ismail
Hello, im new to python i've decided to learn python so i can make plugins in games like css and minecraft i have a question about minecraft, there is a plugin that loads plugins made in python. http://forums.bukkit.org/threads/dev-pythonloader-v0-3-1-load-plugins-written-in-python-1597.30389/pa

Re: [Tutor] minecraft and python

2012-03-15 Thread Alan Gauld
On 15/03/12 07:53, Hadi ismail wrote: i know how to do this in python but i dont know how to do it in way that it works in minecraft seems like its impossible for me and there are no tutorials on it There are probably tutorials on how to do it in Java and you will need to translate how Java d

[Tutor] null inputs

2012-03-15 Thread ADRIAN KELLY
Hi guys, how do i prevent a user from leaving a blank when inputting? e.g. age=int(input("what age are you? ")).. i want to stop the user pressing enter if age==""? Adrian Kelly 1 Bramble Close Baylough Athlone County Westmeath 0879495663

[Tutor] FW: null inputs

2012-03-15 Thread ADRIAN KELLY
Adrian Kelly 1 Bramble Close Baylough Athlone County Westmeath 0879495663 From: kellyadr...@hotmail.com To: tutor@python.org Subject: null inputs Date: Thu, 15 Mar 2012 14:19:16 + Hi guys, how do i prevent a user from leaving a blank when inputting? e.g. age=int(input("what a

Re: [Tutor] FW: null inputs

2012-03-15 Thread James Reynolds
On Thu, Mar 15, 2012 at 10:32 AM, ADRIAN KELLY wrote: > > > Adrian Kelly > 1 Bramble Close > Baylough > Athlone > County Westmeath > > 0879495663 > > > -- > From: kellyadr...@hotmail.com > To: tutor@python.org > Subject: null inputs > Date: Thu, 15 Mar 2012 14:19:16 +0

Re: [Tutor] FW: null inputs

2012-03-15 Thread Hugo Arts
On Thu, Mar 15, 2012 at 3:56 PM, James Reynolds wrote: > > > You can't prevent users from entering whatever they feel like it, but you > can prevent your program from processing that input and force them to try > again. > > The typical way this is done is through a while loop: > > age = '' > > whi

Re: [Tutor] FW: null inputs

2012-03-15 Thread ADRIAN KELLY
thanks very much i get it now... > From: hugo.yo...@gmail.com > Date: Thu, 15 Mar 2012 16:03:12 +0100 > Subject: Re: [Tutor] FW: null inputs > To: eire1...@gmail.com > CC: kellyadr...@hotmail.com; tutor@python.org > > On Thu, Mar 15, 2012 at 3:56 PM, James Reynolds wrote: > >

[Tutor] How do I get user input when running a python program?

2012-03-15 Thread Tamar Osher
Hi. I am reading Python for the Absolute Beginner, finished chapter 4, and am trying to duplicate the author's games. In order to know if I have properly created my new games, I need to get user input and see what happens. How do I set things up on my computer so that I can get user input wh

Re: [Tutor] How do I get user input when running a python program?

2012-03-15 Thread Prasad, Ramit
>Hi.  I am reading Python for the Absolute Beginner, finished chapter 4, and am >trying to duplicate the author's games.  In order to know if I have properly >created my new games, I need to get user input and see what happens.  How do I >set things up on my computer so that I can get user input

[Tutor] stuck on null values

2012-03-15 Thread ADRIAN KELLY
Please can anyone tell me how to solve the problem i am having here, i am trying to loop if the value is left blank by the user but how can i then use the value and multiply it. e.g. while number_child=="" i want to multiply the input i get.??? def main():print """_

Re: [Tutor] stuck on null values

2012-03-15 Thread Joel Goldstick
On Thu, Mar 15, 2012 at 5:24 PM, ADRIAN KELLY wrote: > Please can anyone tell me how to solve the problem i am having here, i am > trying to loop if the value is left blank by the user > but how can i then use the value and multiply it.  e.g. while > number_child=="" i want to multiply

Re: [Tutor] How do I get user input when running a python program?

2012-03-15 Thread Walter Prins
Hi Tamar, On 15 March 2012 17:59, Tamar Osher wrote: > Hi.  I am reading Python for the Absolute Beginner, finished chapter 4, and > am trying to duplicate the author's games.  In order to know if I have > properly created my new games, I need to get user input and see what > happens.  How do I s

[Tutor] how I overcame the problem "I cannot run Python programs"

2012-03-15 Thread Tamar Osher
I realized that my computer was running the programs. The black box was flashing off and disappearing immediately, so that I never saw the programs. Also, I am using Notepad++, in addition to IDLE. I am now able to see my programs and provide user input, when I use Notepad++. Also, I still h

Re: [Tutor] how I overcame the problem "I cannot run Python programs"

2012-03-15 Thread eire1130
That's the nature of things I'm afraid. I do about half of my development on windows. My recomendation, download eclipse and install pydev. IDE choice is always a touchy subject but for windows, this should be your choice. I have notepad++ as well. Its great. But eclipse is better, especially

[Tutor] more about how I overcame not being able to run my programs

2012-03-15 Thread Tamar Osher
I am very appreciative for the many valuable individuals who graciously take their precious time to help others in need. Special thanks to: Brian van den Broek,Bob Gailer,and Hugo Arts. I followed all the instructions of Hugo, Bob, and Brian. This is specifically what I am now doing so that I

Re: [Tutor] more about how I overcame not being able to run my programs

2012-03-15 Thread Alan Gauld
On 15/03/12 22:39, Tamar Osher wrote: try: import os # my program finally: input ('\n\t\t\tPress the enter key to continue.') os.system ('pause') It's more conventional to put the import at the very top, before the try: line. But otherwise what you have should be fine. There are other ways

Re: [Tutor] how I overcame the problem "I cannot run Python programs"

2012-03-15 Thread Mark Lawrence
On 15/03/2012 22:30, eire1...@gmail.com wrote: That's the nature of things I'm afraid. I do about half of my development on windows. My recomendation, download eclipse and install pydev. IDE choice is always a touchy subject but for windows, this should be your choice. I have notepad++ as we

Re: [Tutor] more about how I overcame not being able to run my programs

2012-03-15 Thread Steven D'Aprano
Alan Gauld wrote: On 15/03/12 22:39, Tamar Osher wrote: try: import os # my program finally: input ('\n\t\t\tPress the enter key to continue.') os.system ('pause') It's more conventional to put the import at the very top, before the try: line. True, but in this case, if there is an import

Re: [Tutor] how I overcame the problem "I cannot run Python programs"

2012-03-15 Thread Alan Gauld
On 16/03/12 00:29, Mark Lawrence wrote: I have notepad++ as well. Its great. But eclipse is better, especially for learning. I can't describe how much it helped me. I believe that eclipse is crap. No, it's not crap, it's one of the most powerful and extensible development tools available and