Glasgow | 26- SDC-Mar | Taras Mykytiuk | Sprint 5 | Prep exercises#514
Glasgow | 26- SDC-Mar | Taras Mykytiuk | Sprint 5 | Prep exercises#514TarasMykytiuk wants to merge 11 commits into
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
6 similar comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
LonMcGregor
left a comment
There was a problem hiding this comment.
Good work on these. A few issues in some of the files, see my comments for more info
There was a problem hiding this comment.
You don't need to commit these files, can you remove it / ignore it?
| def is_adult(self) -> bool: | ||
| current_date = date.today() | ||
| full_years = current_date.year - self.date_of_birth.year | ||
| if (current_date.month < self.date_of_birth.month) or ( |
There was a problem hiding this comment.
Is there a simpler way of comparing dates?
|
|
||
| def main(): | ||
| input = inputPerson() | ||
| if len(input) == 0: |
There was a problem hiding this comment.
Does your solution appropriately handle if there was an error in the input?
LonMcGregor
left a comment
There was a problem hiding this comment.
My comment about the pycache files is not resolved yet, can you take a look there.
You are now printing an error when handling the input, but is that a useful way of using an app, that it immediately exits when invalid input is given? Can you change it to allow a user to re-attempt the input if something is broken?
Learners, PR Template
Self checklist
Changelist
Prep exercises for sprint 5 are done.