Question: Let us develop a tool to identify the institution that issued the card to the card holder. This tool asks user to enter a credit

Let us develop a tool to identify the institution that issued the card to the card holder. This tool asks user to enter a credit card number, then display the length of credit card number, and print out institution that issued the card to the card holder.
To identify the type of the credit, we may use check the first 6 digits of a credit card number, which are known as the Issuer Identification Number (IIN). The IIN ranges used by the major card schemes are:
Visa: Card numbers start with a 4.
MasterCard: Card numbers start with the numbers 51,52,53,54 or 55.
Diners Club: Card numbers begin with 36 or 38.
Discover: Card numbers begin with 6011 or 65.
American Express (Amex): Card numbers beginning with 34 or 37.
Sample Run 1
Enter a credit card number: 4123456
There are 7 digits in your credit card number.
It is a Visa card.
Sample Run 2
Enter a credit card number: 912345
Sorry! We can not identify this credit card number.
Create a source code on Python program

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!