How can I make this code more efficient? I'm changing a few of the numbers each time but it's getting tedious because I have so many more to go. I've tried:
i=1
print('Enter Number of #',i,'Tickets Left: ')
TL+i=input()
P+i+Y = int(T+i)-int(TL+i)
But am getting a syntax error.
P1 = 1
P2 = 50
P3 = 1
P4 =1
P5 = 2
P6=2
P7=2
P8=2
P9=2
P10=2
P11=2
P12=2
P13= 3
P14=3
P15=3
P16=5
P17=5
T1=250
T2=250
T3 = 250
T4 = 250
T5 = 250
T6 = 250
T7 = 250
T8 = 250
T9 = 250
T10 = 250
for i in range(1,10):
print('Enter Number of #1 Tickets Left: ')
TL1 = input()
P1y = int(T1) - int(TL1)
print('Enter Number of #2 Tickets Left: ')
TL2 = input()
P2y = int(T2) - int(TL2)
etc.