I'm making a python program that generates Spanish license plates, and I want the program to ask you how many license plates you want (saved on the 'quantity' variable), then generate that many.
I also want to know if it's possible to save the output to a file.
Thanks in advance!
import random
chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
nums = '0123456789'
letters = ''
numbers = ''
quantity = int(input('Cuántas matrículas quieres? '))
for c in range(3):
letters += random.choice(chars)
for c in range(4):
numbers += random.choice(nums)
print('Tu matrícula es', numbers, letters)