-
-
Notifications
You must be signed in to change notification settings - Fork 42
Manchester | 25-SDC-Nov | Rahwa Haile | Sprint 5| Prep Exercises #291
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Manchester | 25-SDC-Nov | Rahwa Haile | Sprint 5| Prep Exercises #291
Conversation
OracPrime
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couple of minor tweaks required, but mostly very good
| return counts | ||
|
|
||
| def main(): | ||
| name = input("Enter your name: ").strip() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm liking the use of strip on inputs
| name: str | ||
| age: int | ||
| children: List["Person"] | ||
| fatma = Person(name="Fatma", age=5, children=[]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Blank lines before and after the class declaration might make the code easier to read
| total += pence | ||
| return total | ||
| def format_pence_as_string(total_pence: int) -> str: | ||
| if total_pence < 100: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As mentioned in the meeting on Saturday, this code doesn't do what you want if total_pence is <-100
| age: int | ||
| preferred_operating_systems: List[str] | ||
| @dataclass(frozen=True) | ||
| class Laptop: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Again, some blank lines would be good for readability
Manchester | 25-SDC-Nov | Rahwa Haile | Sprint 5| Prep Exercises
Learners, PR Template
Self checklist
Changelist
Questions
Thank you for your time reviewing this work