Python Forum

Full Version: LIST FORMATTING
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have a list which prints like this:
Hello
My
Name
Is

but I want the first 3 letters of each word, eg.
HellMyNamIs printed like this but it prints like this,
Hell
My
Nam
Is

is there any way to format it for all print on one line and add together like I've done above thank you
show us your code in python tags.
Note that print function has optional argument end
And please don't use all caps. Us old internet fogies see that as shouting.