TORONTO KIDS COMPUTER CLUB | Aurora Saturday 14:30 Python Practice 20.06.27.
post-template-default,single,single-post,postid-17835,single-format-standard,ajax_fade,page_not_loaded,,qode-theme-ver-7.6.2,wpb-js-composer js-comp-ver-6.8.0,vc_responsive

Aurora Saturday 14:30 Python Practice 20.06.27.

02 Jul Aurora Saturday 14:30 Python Practice 20.06.27.

Question 1:

Question 2:
Jack is sending a super special love letter, and because it is so special he doesn’t want anyone (except his crush obviously) to see it.

To stop it from getting into the wrong hands, he has decided to encrypt the letter with a Caeser Cipher (don’t worry his crush will get it).

Unfortunately, he isn’t very skilled at programming and finds it difficult to apply the cipher to his letter. Can you help him do it?

Input Specification
The first line will contain the integer N, the length of the love letter.

The second line will contain the integer L, the shift he wants to apply.

The third line will contain the string S, the love letter itself. It will consist only of lowercase letters and spaces.

Output Specification
Output the love letter with the cipher applied.

Input Constraints


Sample Input
roses are red violets are blue sugar is sweet so are you

Sample Output
tqugu ctg tgf xkqngvu ctg dnwg uwict ku uyggv uq ctg aqw

Every letter in the input has been shifted two places forward as specified in the input. Note that the letter y was looped back to a.

No Comments

Sorry, the comment form is closed at this time.