The variableweekend
is No
if it is a weekday, and the variable vacation
is Yes
if we are on vacation.
You get to sleep in if it is not a weekday or if you're on vacation. Print Yes
if you sleep in and No
if you don't.
Weekend? Yes
Vacation? Yes
Sleep In: Yes
Check the values of weekday and vacation and return the appropriate response. Map out all combinations before you begin!
- Watch the formatting - capitalization, etc.
- If you're worried about the user typing the response with a capital letter, remind them in the prompt. You can also use the
.title()
method to correct it. Ask if you want to try it!
- When you have completed the task, test it using the test file. Click the green run button in the left margin to run the tests.
- If the tests fail, try to fix them (and ask for help if you need it).
- When they pass, check for style issues in your program. (Look for the feedback icons in the upper right corner.)
- When you have passed the tests, commit and push to GitHub.
- Go to the repo on GitHub and click on the Pull Requests tab. Look for feedback about code function and style. If any issues are found, fix them and check your changes in to GitHub. repeat until no errors are found.
- When done, submit "Done" on Canvas.
Attribution:
Thank you to Bianca Ruiz @RuiztheRuler for providing a great starting place for automating feedback!