Asked by Sheryl
In Python - A state creates license plates, each containing two letters followed by three digits. The first letter must be a vowel (A,E,I,O,U), and duplicate letters and digits are allowed. The second letter can be any letter of the alphabet. The state only uses capital letters. A sample license plate is: IS-030.
How many different license plates are possible? Have Python answer this question using multiplication and then list on the screen in one column all the possible license plates.
AA-000
AA-001
AA-002, etc.
How many different license plates are possible? Have Python answer this question using multiplication and then list on the screen in one column all the possible license plates.
AA-000
AA-001
AA-002, etc.
Answers
Answered by
Sheryl
This is the part that will calculate the total number of license plates possible.
def main():
num_of_poss_plates = 5*26*10*10*10
print('The number of possible plates are: ', num_of_poss_plates)
main()
def main():
num_of_poss_plates = 5*26*10*10*10
print('The number of possible plates are: ', num_of_poss_plates)
main()
Answered by
PsyDAG
Do not have Python.
5 * 5 * 10 * 10* 10 = ?
5 * 5 * 10 * 10* 10 = ?
Answered by
PsyDAG
You are right. I did not read the question carefully enough.
Answered by
Anonymous
It says to list all possible license plates, not the total number.
There are no AI answers yet. The ability to request AI answers is coming soon!