Oh No! Our code, it’s broken 😲. A special easter egg find can be found here, oh you found it!

The exercises in this session will allow you to put the concepts you’ve learned previously into practice. While the tasks that they ask you to complete are generally small (which of course is going to be very boring for some of you), solving these exercises is an important step toward the creation of larger programs that solve more interesting problems.

Question

In many jurisdictions, a small deposit is added to drink containers to encourage people

to recycle them. In one particular jurisdiction, drink containers holding one liter or

less have a $0.10 deposit, and drink containers holding more than one liter have a

$0.25 deposit.

Write a program that reads the number of containers of each size from the user.

Your program should continue by computing and displaying the refund that will be

received for returning those containers. Format the output so that it includes a dollar

sign and two digits to the right of the decimal point (if you want to).

Question

Write a program that reads a positive integer, n, from the user and then displays the

sum of all of the integers from 1 to n. The sum of the first n positive integers can be

computed using the formula:

As usual ( I really think I shouldn't be saying this again), make all submissions by sharing a link from online-python.com to the group chat or my dms.

Special highlight for the week was a code submission from Derrick. A simple and elegant solution to the Curzon Number problem. You can view his code here and have a great one with this !