keyword = raw_input ("Enter your keyword") *10000
keyword = keyword.lower()
keywordoutput = []
for character in keyword:
number = ord(character)
keywordoutput.append(number)
input1 = raw_input('Write Text: ')
input1 = input1.lower()
output1 = []
for character in input1:
number = ord(character)
output1.append(number)
output2 = [x + y for x, y in zip(output1, keywordoutput)]
print output2
That is my code so far. I am trying to create a program that uses a simple Vigenere Cypher to encrypt an inputted text. The code works perfectly, yet I am having an issue implimenting new code to return a string of 'output2'.
I get 'output2' easily, but from there i need to make it a simple string. Eg: [1, 2, 3, 4] becomes (1234)
I have tried, but I cant seem to implement such a thing into my code.