Results 1 to 3 of 3

Thread: python help

  1. #1

    python help

    trying to troubleshoot a program for my python class, and can't figure out how to get the output to display on one line, without the spaces. i've tried a few different ways, string.join() and string.joinfields(), but none of them have worked so far. please help!

    text = raw_input("what phrase would you like to input")
    import string
    splitString = string.split(phrase)
    x = len(splitString)
    for i in range(x)
    newText = splitString[i][0]
    letters = string.upper(newText)
    print letters


    (pretend that the last 3 lines are indented)
    \"People should not be afraid of their governments. Governments should be afraid of their people.\" - V

  2. #2
    Junior Member
    Join Date
    Sep 2005
    Posts
    4
    A question...only a question:

    are you programming python for linux?(or unix, is the same )

    (i think YES, but is a doubt only)


    ByTeS

  3. #3
    it's for a class, and we're programming under the IDLE for windows, wouldn't the language be the same in windows and linux though?
    just a thought.
    \"People should not be afraid of their governments. Governments should be afraid of their people.\" - V

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •