for example if i write hello on one line and then wanted to write goodbye right underneath what do i have to do? as when i press the enter key it just prints hello
darkfury18 0 Newbie Poster
Recommended Answers
Jump to PostThe print statement in python (except python 3) automatically adds a newline at the end.
Should be noted that this can be prevent by doing the following
print "Hello World",
Yup a trailing ','
:)Chris
All 4 Replies
scru 909 Posting Virtuoso Featured Poster
Freaky_Chris 299 Master Poster
lllllIllIlllI 178 Veteran Poster
scru 909 Posting Virtuoso Featured 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.