Encryption of a word by a index value | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Encryption of a word by a index value

I want to encrypt a word, only alphabets not space or digits For example : input = abcde 54 value = 2 expected output = cdefg 54 input = hai value = 25 expected output = gzj 25 bUt i cant get expected output..plz help me https://code.sololearn.com/ceyqZvdG1cln/?ref=app

10th Apr 2020, 9:41 PM
Muhammed Niyas
Muhammed Niyas - avatar
2 Answers
0
if i in [' ', '1', '2', '3', '4', '5', '6', '7', '8', '9', '0']: or if i in " 1234567890":
10th Apr 2020, 11:32 PM
rodwynnejones
rodwynnejones - avatar
0
thank you
11th Apr 2020, 9:36 AM
Muhammed Niyas
Muhammed Niyas - avatar