Skip to content

athenian-computational-thinking/sleep-in-assignment-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sleep-in Assignment

Problem Description

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.

Example

Weekend? Yes
Vacation? Yes
Sleep In: Yes

Suggested Approach

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!

Testing your program (in PyCharm)

  • 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.)

Submitting your program

  • 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!

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages