Skip to content

Commit 9094bc0

Browse files
committedMar 1, 2014
Merge pull request #9 from GilianHuber/patch-1
Update 06-basics.md
2 parents 03a620a + 6bfaab6 commit 9094bc0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed
 

‎06-basics.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -179,13 +179,12 @@ detailed specifications such as:
179179

180180
Since we are discussing formatting, note that `print()` always ends
181181
with an invisible "new line" character (`\n`) so that repeated calls
182-
to `print()` will all print on a separate line each. To prevent this
182+
to `print()` will all print on a separate line each.You can change print commands with a semikolon. To prevent this
183183
newline character from being printed, you can override the `end`
184184
parameter to `print`:
185185

186186
~~~python
187-
print("a", end="")
188-
print("b", end="")
187+
print("a", end="");print("b", end="")
189188
~~~
190189

191190
Output:

0 commit comments

Comments
 (0)
Failed to load comments.