-
October 11th, 2005, 07:39 PM
#1
Member
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
-
October 11th, 2005, 11:06 PM
#2
Junior Member
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
-
October 16th, 2005, 10:02 PM
#3
Member
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
-
Forum Rules
|
|