Sep-21-2019, 12:09 AM
This is a little hard to explain but if the code is ran things will start to make sense.
Right now when this program is ran it does this, when I enter a letter in the input that is part of line 1
['*', '*', '*', '*', '*', 'l']
My goal is to have it do this instead
['*', 'l', '*', '*', '*',]
Right now when this program is ran it does this, when I enter a letter in the input that is part of line 1
['*', '*', '*', '*', '*', 'l']
My goal is to have it do this instead
['*', 'l', '*', '*', '*',]
line1 = 'alpha' line2 = ['*', '*', '*', '*', '*',] password = input('enter a letter in the password') for i in line1: if i == password: line2.append(password) print(line2)Does anyone know the solution?