User Profile

Collapse

Profile Sidebar

Collapse
PythonNotSoGuru
PythonNotSoGuru
Last Activity: Apr 7 '09, 06:13 PM
Joined: Oct 8 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • PythonNotSoGuru
    replied to Getting text into list?
    why thank you good sir
    See more | Go to post

    Leave a comment:


  • PythonNotSoGuru
    started a topic Getting text into list?

    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]
    See more | Go to post

  • PythonNotSoGuru
    replied to Floating Point to Integer?
    great thanx

    cool thanx alot man works nicely
    See more | Go to post

    Leave a comment:


  • PythonNotSoGuru
    started a topic Floating Point to Integer?

    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]...
    See more | Go to post

  • PythonNotSoGuru
    started a topic While Loop problem

    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.
    See more | Go to post

  • PythonNotSoGuru
    started a topic While Loop problem

    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...
    See more | Go to post

  • PythonNotSoGuru
    started a topic Distance between 2 points user chosen.

    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...
    See more | Go to post

  • PythonNotSoGuru
    started a topic Disable mouse?

    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...
    See more | Go to post

  • 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.
    See more | Go to post

    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?
    thanks
    See more | Go to post

    Leave a comment:


  • PythonNotSoGuru
    replied to Starting IDLE without a subprocess
    Thank you so much FINALLY AN ANSWER!
    See more | Go to post

    Leave 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.
    See more | Go to post

    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.
    ...
    See more | Go to post
    Last edited by bartonc; Oct 27 '07, 07:44 PM. Reason: Added [CODE=python][/CODE] tags.

  • PythonNotSoGuru
    started a topic Starting IDLE without a subprocess

    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
    See more | Go to post

  • 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.
    See more | Go to post

    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?
    See more | Go to post

    Leave a comment:


  • PythonNotSoGuru
    started a topic Problem Checking for Tuple in Raw Input

    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...
    See more | Go to post
    Last edited by bartonc; Oct 20 '07, 07:57 PM. Reason: Added [CODE=python][/CODE] tags.

  • 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
    See more | Go to post

  • 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.
    See more | Go to post

    Leave a comment:


  • hi im on windows xp pro with python 2.5 thanx for any help you can give
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...