Skip to content

Commit 0ee294a

Browse files
adding a blank lines for good readability
1 parent 1a48037 commit 0ee294a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

sprint-5/prep-exercises/type-guided.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,24 @@ class Person:
2222
name: str
2323
age: int
2424
preferred_operating_systems: List[str]
25+
2526
@dataclass(frozen=True)
2627
class Laptop:
2728
id: int
2829
manufacturer: str
2930
model: str
3031
screen_size_in_inches: float
3132
operating_system: str
33+
34+
3235
def find_possible_laptops(laptops: List[Laptop], person: Person) -> List[Laptop]:
3336
possible_laptops = []
3437
for laptop in laptops:
3538
if laptop.operating_system in person.preferred_operating_systems:
3639
possible_laptops.append(laptop)
3740
return possible_laptops
41+
42+
3843
people = [
3944
Person(name="Imran", age=22, preferred_operating_systems=["Ubuntu"]),
4045
Person(name="Eliza", age=34, preferred_operating_systems=["Arch Linux"]),

0 commit comments

Comments
 (0)