Skip to content
This repository was archived by the owner on Nov 14, 2019. It is now read-only.

Finished mailroom oop #1557

Merged

Conversation

ramr24
Copy link
Contributor

@ramr24 ramr24 commented Jul 16, 2019

I will continue to work on this since this mailroom oop project as I know this is not a fully finished code without separating code into cli.py and not having a test.py. I will definitely finish and organize my code to a better stage before starting my next course.

Copy link

@natasha-aleksandrova natasha-aleksandrova left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ramr24 nice work! you have the basics of OO but yes like you mentioned the organization would need to be addressed.

try:
donation_amount = input_donation()
except ValueError: #ValueError if not integer/float
print("Please enter an integer.")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there should be no input functions in your data classes (even if input() is not directly called)

elif user_response == 4:
exit_program()
elif user_response not in range(1,4):
print("Please enter a valid number within 1-4!\n")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

switch dict would be more appropriate here

@natasha-aleksandrova natasha-aleksandrova merged commit e298b11 into UWPCE-PythonCert-ClassRepos:master Jul 17, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants