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 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
MasterCard: Card numbers start with the numbers or
Diners Club: Card numbers begin with or
Discover: Card numbers begin with or
American Express Amex: Card numbers beginning with or
Sample Run
Enter a credit card number:
There are digits in your credit card number.
It is a Visa card.
Sample Run
Enter a credit card number:
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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
