Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # =======================================
- # === The Kitty Mood Improver Project ===
- # =======================================
- # ========================= Day 1#
- # Task 1
- # Ask kitty how is he feeling today.
- # If it's "Great!", print out 1 deer kiss!
- # If it's "Good", print out 10 deer kisses, so he can feel great!
- # If it's "Okay", print out 30 deer kisses, so he can feel great!
- # If it's "Bad", print out 100 deer kisses, so he can feel great!
- # If it's "Terrible", print out 1000 deer kisses, so he can feel great!
- # ========================= Day 1#
- # Task 2
- # Copy the code of the previous task.
- # Rewrite it by using a function:
- # Make a function called "deer_kiss" taking one parameter, "amount".
- # That function should print out [amount] deer kisses.
- # ========================= Day 2#
- # Task 3
- # Copy the code of the previous task.
- # Rewrite it by adding another function: "calculate_required_kisses".
- # That function should take one parameter, "kitty_feeling".
- # It should [return] the necessary amount of deer kisses to make kitty feel great.
- # Then, use that function in conjunction with deer_kiss to make kitty's day better.
- # ========================= Day 2-3#
- # Task 4
- # Copy the code of the previous task.
- # Rewrite it by adding yet another function: "query_kitty".
- # That function should ask kitty how he feels, and then return what kitty wrote.
- # ========================= Day 3#
- # Task 5
- # Copy the code of the previous task. We'll change the logic a bit.
- # First, the program should ask kitty how he feels.
- # Then, it should use that to decide how many deer kisses to print.
- # Then, ask kitty how he feels again.
- # Repeat it until kitty replies "Great!"
- # ========================= Day 3#
- # Task 6 - final!
- # Copy the code of the previous task.
- # There is one thing left to do - if kitty is sleepy and can't type properly, he may mumble his response.
- # You may ask him how he feels and get "Mehwh" as reply - is that "great"? is that "okay"? Who knows!
- # So if kitty's reply isn't one of the known ones, print out "Kitty, I can't understand you! How are you feeling?"
- # until he finally writes a coherent word!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement