I would recommend that you first complete the Python course which you have just begun, because your "courses progress" shows 0% at "Python for Beginners".
For your task you will need to know at least
- how to input values from keyboard
- writing to and reading from files
- data structures like lists or dictionaries
- conditional expressions.
Lenny C. Berondo You have posted the same question twice.
Show us what you've tried so far and we may be able to help you get your code to work.
The object is to help you learn, not just do your homework for you.
By the way, Python is a snake and a programming language. Phyton is of course the Suel god of Nature, Beauty, and Farming, whose symbol is a scimitar in front of an oak tree. 😁