Use this repository (repo, for short) to complete your practice for Lesson 1.
- 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)
- 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.
- Expected output:
- Fix the code so it prints a greeting.
- 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!
- Expected output:
- GitHub will run a test on this when you submit it.
- Your print statement should use a formatted string (f-string) to insert the value of the variable into the sentence.
- This program should assign the string "geometry" to the variable
- 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.
- Write a short program that assigns one of your hobbies to the variable
- 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.
- 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.
- 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! 🎉
- When you have completed each task, commit and push to GitHub.
- Go to the repo on GitHub and look for the green check mark (automatic testing passed.)
- See Canvas for more information
Attribution:
Thank you to Bianca Ruiz @RuiztheRuler for providing a great starting place for automating feedback!