Challenge: Caesar Cipher Encoder
Taak
Swipe to start coding
Implement a function that encodes a message using a Caesar cipher with a specified shift value. The Caesar cipher shifts each letter in the message by the given amount, wrapping around the alphabet if necessary. Non-letter characters should remain unchanged.
- Shift each uppercase and lowercase letter in
messagebyshiftpositions in the alphabet. - Preserve the case of each letter.
- Do not change any non-letter characters.
- Return the encoded string.
Oplossing
Was alles duidelijk?
Bedankt voor je feedback!
Sectie 3. Hoofdstuk 6
single
Vraag AI
Vraag AI
Vraag wat u wilt of probeer een van de voorgestelde vragen om onze chat te starten.
Geweldig!
Completion tarief verbeterd naar 4.76
Challenge: Caesar Cipher Encoder
Veeg om het menu te tonen
Taak
Swipe to start coding
Implement a function that encodes a message using a Caesar cipher with a specified shift value. The Caesar cipher shifts each letter in the message by the given amount, wrapping around the alphabet if necessary. Non-letter characters should remain unchanged.
- Shift each uppercase and lowercase letter in
messagebyshiftpositions in the alphabet. - Preserve the case of each letter.
- Do not change any non-letter characters.
- Return the encoded string.
Oplossing
Was alles duidelijk?
Bedankt voor je feedback!
Sectie 3. Hoofdstuk 6
single