3. Piggy Bank. Write a program that creates a text file as a piggy bank/savings account. The program should display/inform the user at each step. Check the existence of the file and display "I have created the file!"; "The file exists, what do you want to do? Enter 1 for reading, 2 for additions, 3 for permanent deletion of the file, 0 for exit".
Note! Consider adding 3 other pieces of information: date, source (mom, dad, grandfather, sister, etc.), and currency (lei, euros, dollars, etc.).
Use the
datetime module:
from datetime import date and
data = date.today() or use another method (reading from the keyboard) for the date.
. At the end of the viewing operation (2), display the total situation: "You have x lei, y euros, and z dollars".
[
solve in editor]
Author: RADULESCU BARBU CRISTIAN | Code: #71 | Hard