8000 Merge branch 'milestone_project_remove_hof' into small_lecture_fixes_… · Tri3st/complete-python-course@3b9a256 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3b9a256

Browse files
committed
Merge branch 'milestone_project_remove_hof' into small_lecture_fixes_and_milestone_project_pdf
2 parents 3d51208 + 010d594 commit 3b9a256

File tree

4 files changed

+12
-5
lines changed

4 files changed

+12
-5
lines changed

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
rebrand-subs/
2+
subs/
3+
promo/
4+
cpc-questions/
25
captions/
36
page_*.jpeg
47
exercises/
@@ -24,3 +27,7 @@ exports/
2427
videos/
2528
*.numbers
2629
*.sketch
30+
*.pptx
31+
*.vtt
32+
*.zip
33+
**/old

course_contents/1_intro/lectures/5_remainder/code.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
division_with_remainder = 12 // 5 # should be 2.4
2-
print(division_with_remainder) # prints 2
1+
integer_division = 13 // 5 # should be 2.6
2+
print(integer_division) # prints 2
33

4-
# 5 goes into 12 two times. (5 * 2 is 10). The remainder is 2.
4+
# 5 goes into 13 two times. (5 * 2 is 10). The remainder is 3.
55
# Getting the remainder of a division is such a popular operation, that Python gives us a way to do it really easily.
66

7-
remainder = 12 % 5
8-
print(remainder) # prints 2
7+
remainder = 13 % 5
8+
print(remainder) # prints 3
99

1010
# Why is it so popular?
1111
# What would the remainder be in these divisions?
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)
0