FREE INTERACTIVE ONLINE COURSE

Python 3

FOR BEGINNERS


"The first Python course that simply amazed me. Very well explained and easy to understand." (Alexandru Cosmin)

"The best Python course in Romania." (Iulian Geană)


ALL REVIEWS
COMUNITY
EXERCISES
Computer Science - Problem Collection in Python


[Back to Index]

Requirement. 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".

Autor: admin | Cod: #71 | Hard
Editor - problem_#71.py
       
Console done
Graphical mode (turtle window) done
 arrow_back   home   perm_identity   list   arrow_upward