Skip to content

Commit 104845f

Browse files
committed
explain "\n" in print()
1 parent 330d401 commit 104845f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

01-data_types/d6.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,5 @@
1616
# one of them, count(), counts the number of occurrences of a substring.
1717
count_of_to = speech.count('to')
1818
print(f"\nThe word 'to' appears {count_of_to} times in that speech.")
19+
20+
# The "\n" at the start of that print call creates a new line

0 commit comments

Comments
 (0)