How to connect SQL database to python to check user’s information [closed]

like I want to write code to open a bank account, check balance, deposit balance, withdraw balance check interest rate and check holiday list. In order to check balance and withdraw balance user have to open a bank account at first. So, to open an account, users have to input first name, last name, age and set their username and password.

So, I want code that store the user typed username and password in a SQL database and when the user wants to check his balance, deposit balance, withdraw balance, first the program should ask for the user’s username and password and check-in that database if it matches then the user can check his/her balance similarly can deposit and withdraw balance from the bank which means checking, depositing, withdraw should be instance method and to check the interest rate and the holiday list should be a static method.

You may also like...