Is there a way to print without printing a newline? You see I have a list and I want to print every entry in the list to make a word.
What language is that?
if its for Python ...i used the: ''.join(mylist) command... hope it helps.
from __future__ import print_function print("Yo! dude", end='') print(" ... sup?")
U could try print line, I think the trailing comma will suppress the \n
from what i understand he wants to make his list a string! ['a','b','c']---->'abc'
Right, I guess his question isn't that clear, maybe we could see the code....?
you can use str += to build an output string: str = "" # initialize an empty string a = "a" b = "b" str += a # append it str += b print str ab
alist = ["a","b","c"] str = "" for thing in alist: str += thing print str abc
snark - While you are right - you don't need all that. Look at MicroBot's answer.
Join our real-time social learning platform and learn together with your friends!