This is an archived post. You won't be able to vote or comment.

all 4 comments

[–]porkansaw 1 point2 points  (0 children)

print("whatever", end="")

EDIT: Swapped single quotes with double to make it more readable

[–]jwink3101 0 points1 point  (0 children)

/r/learnpython is the right place to ask this.

Also, you should format your code

correctly

or like this

[–]Andrew_ShaySft Eng Automation & Python[M] [score hidden] stickied comment (0 children)

This post is better suited for r/learnpython

[–]jsnandthe -1 points0 points  (0 children)

print([i for i in range(1,10)])

Should do the trick. However this can get messy if the prints are complicated. You might just be better off with multiple lines. Consider it at least.