Can someone tell me how I can loop through these places and not have it list it down by continue with the string as attached to the string.
world = ["Japan", "China", "Seattle", "Brazil"]
print "This is my story of the following places: "
for place in world:
print place
EDIT: I put a comma at the end of the print command however since its a separated list I would prefer if I was able to add a separator. End result I want it to show like:
This is my store of the following places. Japan, China, Seattle, Brazil.
Final Edit: With the following code it drops off a line and I'm trying to find out how to remove the additional line so that it continues on the same line.
world = ["Japan", "China", "Seattle", "Brazil"]
print "This is my story of the following places: ",
for i in range(0,len(world)):
if i==(len(world)-1):
print world[i] + '.'
else:
print world[i] +',',
print ". Which has all
This is the story of the following places I visited. They are China, Japan, Seattle, and Brazil
. Which has all of the great icons fo