Answer:
Hope this helps pls mark brainiest
Explanation:
<h2> </h2><h2>So we know Student B is gonna get a computer, but its not stated if its A desktop or laptop. hmm,.. So ima do both for the desktop he would what a computer with "Ethernet Storage Fabrics: 25GbE, 50GbE" because If he going to do videos in todays standers it would be in 4k and 8k. he would also need at least 16 of ram if not 32gb. and since he has no cap budget I would personally go for the i9, but he can go for the i7, not much of a fan of the i5 for video productive, for storage he would need a lot for video editing or other stuff so I would go for the main boot (sys) a and for the actually storage for the videos I would go for a with good rpm. For I would go for something with 8-10 or higher.</h2>
Answer:
try:
cardNumber = str(input('Enter your card number her: \n'))
if (len(cardNumber) > 16 or len(cardNumber < 16)):
raise
except:
print ('You have entered an invalid cardNumber.')
else:
if cardNumber.startswith("2"):
print('American Express Card')
elif cardNumber.startswith("4"):
print('Visa Card')
elif cardNumber.startswith("5"):
print('Master Card')
else:
print('Unknown Card')
Explanation:
In the try block section:
The first line prompt the user for input, which is converted to string and assigned to cardNumber variable. The next line test the length of the cardNumber entered, if it is less than 16 or greater than 16; an exception is raise.
In the except section:
An error message is displayed telling the user that he/she has entered an invalid card number.
In the else section:
This is where is program check for type of card using an if...elif...else statement block. If the cardNumber start with 2; an output of "American Express card" is displayed. If the cardNumber start with 4; an output of "Visa card" is displayed. If the cardNumber start with 5; an output of "Master card" is display else "Unknown card" is displayed to the user.