Currently, I am trying to program an encoder/decoder for a custom cipher and I have an idea of how to encrypt the data. What I am doing is I am putting the user's message in a list, then getting the element with the index of 0, then encrypting that and printing all the characters at once. However, every site I search has the reverse problem: finding the index of an element in a list. Any ideas?
message = input()
uselist = list(message)
numofchar = len(message)
for i in range(0, numofchar):
(code for searching the list)
(some people were confused, so here is a roadmap) user inputs message -> message is changed to list and length is determined -> for loop is used to check the index of 0 -> character is pulled from the list and translated