I am trying to skip a value (or 2 at a time) from an array in a for loop. Please refer to the code below:
loop = True
product = ['p3','p5','p7','16GB','32GB','1TB','2TB','19in','23in','Mini Tower', 'Midi Tower', '2 ports','4 ports']
while loop:
for i in product:
print('Would you like the following component: ',i,)
input()
if input == 'y':
If they choose that part, I would like to skip to the next component. Is there any way I can do that in the loop?? Thanks for the help!