Learning Python (Automate the boring Stuff) Chapter 3 problem’s alternative solution

I was learning python from this wonderful video tutorial and I usually try the problem before the tutor gives the solution. I found out that my solution is better and more full proof than theirs. It’s probably because they are still teaching the concepts and not worried about the details. I thought I could share what I wrote. Let me know if you have better solution and if you find any bug in mine.

You can also learn this from the website