I have been working on something, and i'm stuck again...
I have to print out an infile list in columns, and then print it out again in alphabetical order(sort). I can't figure how to print in columns, nor can i soft it. Any help?
tschafer204
0
Newbie Poster
Recommended Answers
Jump to Post
\t
will print a tab. I don't know if that's your best option, not seeing your data.
Jump to Postuse a for loop e.g.
mylist = ['a', 'b', 'c', 'd'] for word in mylist: print word
outputs
a b c d
All 5 Replies
adam1122
7
Junior Poster
leegeorg07
EvanPM
0
Newbie Poster
lllllIllIlllI
178
Veteran Poster
tschafer204
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.