セクション 3. 章 6
single
Challenge: Caesar Cipher Encoder
メニューを表示するにはスワイプしてください
タスク
スワイプしてコーディングを開始
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.
解答
すべて明確でしたか?
フィードバックありがとうございます!
セクション 3. 章 6
single
AIに質問する
AIに質問する
何でも質問するか、提案された質問の1つを試してチャットを始めてください