Skip to content

Assignment 3 - #2

Open
kfbmartin wants to merge 22 commits into
mainfrom
assignment-3
Open

Assignment 3#2
kfbmartin wants to merge 22 commits into
mainfrom
assignment-3

Conversation

@kfbmartin

Copy link
Copy Markdown
Owner

Creating a pull request for all of assignment-3 work.

print(f"Sorry, I don't recognize that time of day. Try: morning, afternoon or evening for the time of day.")
else:
print("Sorry, I don't recognize that day. Try: Monday, Tuesday, Wednesday...")

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Solid work! I think this meets the requirements fine, but as a thought exercise, think about other ways you might branch the validation so less code has to run before the user gets an error message.

Also side note, in python it's customary to name variables in snake_case instead of camelCase. so time_of_day instead of timeOfDay.

elif age>=65:
#print(f"Your age is {age}.")
print("You are a Senior.")

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

consider adding an else statement for invalid numbers!

@DianaLiao DianaLiao left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Looks good enough to me! I left some comments on style and refactors. Please merge any branches into main and try to keep commits for different assignments separate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants