Python Programming ONLY. Please use simple code, and
avoid using classes. Provide explanation as well. Thank
you.
Write a program that keeps track of running piggybank deposits.
The program should receive input from a user that will enter the
amount to deposit into the piggybank. Use a function, add, which
takes an argument number from the user input and adds it to a
global sum variable. After the 5th deposit, print out the running
total thus far.
Python Programming ONLY. Please use simple code, and avoid using classes. Provide explanation as well. Thank you. Write
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am