Skip to content

Template for CS practice assignments. Can use GitHub Classrooms tests or pytest, also includes style tests.

License

Notifications You must be signed in to change notification settings

Athenian-Computer-Science/lesson-practice-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lesson 1 Practice

Use this repository (repo, for short) to complete your practice for Lesson 1.

Complete the following:

Edpuzzle

  • Edpuzzle practice 🪁
    • Use this for practice during the Edpuzzle video. You can use the main window or the Python Console (see button at the bottom of the PyCharm window)

Parsons Puzzles

Fix & Write Code

  • Fix the Code #1 🪁
    • Fix the code so it prints a greeting.
      • Expected output: Welcome to CompSci!
      • GitHub will test your solution when you submit. See instructions at the end of this page.
  • Write Code #1 🚁
    • Tell the computer to print your own greeting/message.
  • Fix the Code #2 🪁
    • This program should assign the string "geometry" to the variable math_class and print a response.
      • Your print statement should use a formatted string (f-string) to insert the value of the variable into the sentence.
        • Expected output: My favorite class is geometry!
      • GitHub will run a test on this when you submit it.
  • Write Code #2 🚁
    • Write a short program that assigns one of your hobbies to the variable hobby and prints a response. Be sure to use an f-string in your print statement to insert the value of the variable into your response.
  • Fix the Code #3 🪁
    • This program should collect the user's favorite flavor of ice cream. The computer should then respond that it likes that flavor too. Unfortunately, the program doesn't work yet. Please fix it so it works correctly.
      • Sample output (sample input in parentheses):
      What is your favorite ice cream flavor?  (peach)
      I like peach too!
      
    • Be sure to format your print statement correctly. GitHub will test your solution.
  • Write Code #3 🪁
    • Write a program that asks the user a question, saves their response in a variable and then prints a response using that variable. You get to choose the topic this time! 🎉

Submitting your Repo

  • When you have completed each task, 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

Template for CS practice assignments. Can use GitHub Classrooms tests or pytest, also includes style tests.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages