mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-09-24 23:01:18 +08:00
fix(curriculum): correct formatting in Python print function lecture (#62353)
This commit is contained in:
+3
-3
@@ -69,7 +69,7 @@ The `end` parameter lets you avoid a common issue with the `print` function, whe
|
||||
|
||||
The `end` parameter lets you modify the ending of the output. By default, the end character is a newline character (`\n`), which is helpful in most cases.
|
||||
|
||||
But what if you call `print` multiple times in a row?:
|
||||
But what if you call `print` multiple times in a row?
|
||||
|
||||
```python
|
||||
print('Footballers:')
|
||||
@@ -79,7 +79,7 @@ print('Hazard')
|
||||
print('Kante')
|
||||
print('Okocha')
|
||||
|
||||
#Output:
|
||||
# Output:
|
||||
# Footballers:
|
||||
# Ronaldo
|
||||
# Messi
|
||||
@@ -98,7 +98,7 @@ print('Hazard', end=', ')
|
||||
print('Kante', end=', ')
|
||||
print('Okocha', end='.')
|
||||
|
||||
#Output: Footballers: Ronaldo, Messi, Hazard, Kante, Okocha.
|
||||
# Output: Footballers: Ronaldo, Messi, Hazard, Kante, Okocha.
|
||||
```
|
||||
|
||||
How cool is that?
|
||||
|
||||
Reference in New Issue
Block a user