User Profile
Collapse
-
why thank you good sir -
Getting text into list?
Hey all im wondering if there is a way to take user input in format of a sentence and store it in the list by word. So like take text input and then each word in the input becomes an entry in a list. Any help?
code [python] -
-
Floating Point to Integer?
Hi all first time posting in a while sry if i mess something up. Anyway I am using 2d arrays to make a game with pygame and i alter coordinates on this array by smaller than 1 increments. Then i need to reference the coordinates in an If statement. However by this time in the program the coordinates have been altered to non integer numbers. My question is how can i turn these floating point numbers into whole integers.
code = [python]... -
While Loop problem
Hi everyone. I am using a while loop in a game and during the game loop i want the user to be able to give input without the program stopping at a certain point and asking for the input. In other words i want the user to be able to input something at any time that will then be used in the program. I am using Python 2.5, English, Im on Windows XP Service Pack 2.
Thanks for any help you could give. -
While Loop problem
Hi everyone. I am using a while loop in a game and during the game loop i want the user to be able to give input without the program stopping at a certain point and asking for the input. In other words i want the user to be able to input something at any time that will then be used in the program. I am using Python 2.5, English, Im on Windows XP Service Pack 2.
Thanks for any help you could give.
P.S. I know there is probably... -
Distance between 2 points user chosen.
Hi everyone. XP Service pack 2, english, python, I am just wondering how i could go about doing this. I am using pygame to draw 25 objects on the screen and they each are assigned a letter of the alphabet A-Y for the function that loads the image. They also have each have a value A1-Y1 for their starting locations. I already have my collision detection written for when the mouse is clicked on one of these objects so thats not a problem. I then want... -
Disable mouse?
Hello all I am making a program in python where i want the user to have their mouse disabled for a certain amount of time... I dont know if there is a way to do this in python so I came here for help. If anyone knows how to disable the mouse I can take care of the rest.
PS I dont even know how to start this so I havnt even tried.... if you would provide a sample of how you would work this that would be most helpful.
I am using... -
Ok cool. I was just wondering wether there are any things that wont work properly when you run python without the subprocesses for example i am working with pygame and I just want to know if anything wont work without the subprocesses running. Thanks.Leave a comment:
-
Hi ok nevermind about that last comment I figured out what it does but now there it wont work for multiple word inputs such as "lol that was funny". When that is input it brings up "I dont understand your gibberish" becuase i can only check to see if the "bad" words are in a one word raw input. Any ways to fix this problem?
thanksLeave a comment:
-
-
Ok cool now could you please explain this line by line to me because I am a bit confused as to how this works. Thank you so much for your input already.Leave a comment:
-
Using For Loops to check for tuples in raw input
Hello everybody I have been trying to get around the problem of checking for a tuple in raw input and I just got a tip that kind of works but it only works for the second for loop. In other words when you input and of the 'close' words python returns 'thanx for chattin' like it should but if you input any of the 'bad' words it dosnt return anything. I have no idea what the problem is so any help would be much appreciated.
Thank you.
... -
Starting IDLE without a subprocess
Could you pls explain how to get this to run without subprocesses mouse click by mouse click because im still not able to find idle help.
Thanx -
Ok thank you for your help. I will definetly try using this code you gave. I was also wondering WHY python dosnt make this work properly when i have it like i did originally. It seems like the logic is sound. Thank you for any explanations you could give to further my understanding of Python. Any other suggestions beside the ones already given will be much appreciated. Thank you again.Leave a comment:
-
Yeah sorry I tried that and that works exept that it will only work for one word answers. YOu cant have it find the word in a sentence for example. Any other ideas out there?Leave a comment:
-
Problem Checking for Tuple in Raw Input
Hi everyone i was just makeing myself a little spelling bee program and this problem came up that tells me the <string> needs to be left as an operand. I dont know how to fix this problem so any help you could give me would be much appreciated. Thank you
Code:(python)
[CODE=python]
print 'please spell correctly'
def loop():
bad=('lol','tee hee','lawl','ro fl','lmao','lmf ao')
response=raw_in put('please... -
how to have python check for certain word/phrase for raw input
Hi everyone i was just wondering if there is anyway to have python check for a specific word or phrase in a raw input value. If you could please provide a small example code chunk to help me along that would be great. I have no idea how this would be attempted so any suggestions would be terrific.
code (Python)
platform windows
os windows XP pro
python version 2.5
thanx again -
Ok thank you everybody for the help! My new code works great now. Thanks alot.
PS Sorry for the lack of my [code] thing will comply next time.Leave a comment:
-
hi im on windows xp pro with python 2.5 thanx for any help you can giveLeave a comment:
No activity results to display
Show More
Leave a comment: