Encryption in python
LETTERSU='ABCDEFGHIJKLMNOPQRSTUVWXYZ' LETTERSL=LETTERSU.lower() LETTERS2U='TFOESGHIJKPQCDRXBUVWLAMNYZ' LETTERS2L=LETTERS2U.lower() message=input("Enter your message >") outpt="" for i in message: if i in LETTERSU: #i need something that finds the location of the character i in the LETTERSU such as LETTERSU[1] and replace it with LETTERS2U[1] and store in the output. outpt+=LETTERS2U[a] if i in LETTERSL: #same as previous comment... outpt+=LETTERS2L[a] print(outpt) #Any help is greatly appreciated #thanks for ur time... # |. /\. /\. |√-- |. | /· # |. / \/ \. |___|. |/· # |. / \. |\. |\. #__|. / \. | \. | \. https://code.sololearn.com/c3zszXZ36cik/?ref=app