Skip to content

Commit 8b02f2f

Browse files
committed
trailing lines added, files renamed with _, DS_store removed
1 parent 597d675 commit 8b02f2f

12 files changed

+13
-15
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
node_modules
2-
DS_Store
2+
.DS_Store
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ def double(value):
77

88
#2222
99

10-
print(double("22"))
10+
print(double("22"))
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ def double(number):
77

88
print(double(10))
99

10-
#Either call it tripple or * 2
10+
#Either call it tripple or * 2
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,4 @@ def format_pence_as_string(total_pence):
4040

4141
total_pence = sum_balances(balances)
4242
total_string = format_pence_as_string(total_pence) # 3.py:39: error: Name "format_pence_as_str" is not defined [name-defined]
43-
print(f"The bank accounts total {total_string}")
43+
print(f"The bank accounts total {total_string}")
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ def get_eye_colour(person: Person):
3030
return person.eye_colour
3131

3232
print(get_eye_colour(imran))
33-
#error in mypy no attribute
33+
#error in mypy no attribute
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ def is_adult(self):
2424
imran = Person("Imran", date(1988, 10, 10), "Ubuntu")
2525
print(imran.is_adult())
2626
imran = Person("Jay", date(2015, 10, 10), "Ubuntu")
27-
print(imran.is_adult())
27+
print(imran.is_adult())
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,3 @@
55
3 makes the code more specific and it is easier to understand what it is doing for
66
a junior/learner like me :)
77
4 reduces errors
8-
9-
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ def is_adult(self):
2727
imran = Person("Imran", date(1988, 10, 10), "Ubuntu")
2828
print(imran.is_adult())
2929
imran = Person("Jay", date(2015, 10, 10), "Ubuntu")
30-
print(imran.is_adult())
30+
print(imran.is_adult())
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ def print_family_tree(person: Person) -> None:
2222
for child in person.children:
2323
print(f"- {child.name} ({child.age})")
2424

25-
print_family_tree(imran)
25+
print_family_tree(imran)
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,5 @@ def find_possible_laptops(laptops: List[Laptop], person: Person) -> List[Laptop]
5757

5858
for person in people:
5959
possible_laptops = find_possible_laptops(laptops, person)
60-
print(f"Possible laptops for {person.name}: {possible_laptops}")
60+
print(f"Possible laptops for {person.name}: {possible_laptops}")
61+

0 commit comments

Comments
 (0)