I have a problem, I would like to write a vigenere cipher but can't seem to be able to do it.
string='ihaveanappleinmybag'
length=3
#output:
list=['ivnpiyg','healnb','aapema']
I have a string and a keyword and I would like to make a list so that every 1st,2nd,3rd element in the string is one element in the list.
The list depends on the keyword so if the keyword would be 4, it would be broken in 4 parts with every 1st, 2nd, 3rd, 4th element being an element in the list