Преглед на файлове

Merge pull request #9 from GilianHuber/patch-1

Update 06-basics.md
Swaroop C H преди 11 години
родител
ревизия
9094bc0184
променени са 1 файла, в които са добавени 2 реда и са изтрити 3 реда
  1. 2 3
      06-basics.md

+ 2 - 3
06-basics.md

@@ -179,13 +179,12 @@ detailed specifications such as:
 
 
 Since we are discussing formatting, note that `print()` always ends
 Since we are discussing formatting, note that `print()` always ends
 with an invisible "new line" character (`\n`) so that repeated calls
 with an invisible "new line" character (`\n`) so that repeated calls
-to `print()` will all print on a separate line each. To prevent this
+to `print()` will all print on a separate line each.You can change print commands with a semikolon. To prevent this
 newline character from being printed, you can override the `end`
 newline character from being printed, you can override the `end`
 parameter to `print`:
 parameter to `print`:
 
 
 ~~~python
 ~~~python
-print("a", end="")
-print("b", end="")
+print("a", end="");print("b", end="")
 ~~~
 ~~~
 
 
 Output:
 Output: