# Build a Caesar Cipher - Step 4

**URL:** <https://forum.freecodecamp.org/t/build-a-caesar-cipher-step-4/772414>\
**Category:** Curriculum Help\
**Tags:** python\
**Created:** [January 3, 2026, 6:33pm UTC](https://forum.freecodecamp.org/t/build-a-caesar-cipher-step-4/772414 "2026-01-03T18:33:39Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![AmPr04](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ampr04/32/406880_2.png) [@AmPr04](https://forum.freecodecamp.org/u/AmPr04)\
**Post date:** [January 3, 2026, 6:33pm UTC](https://forum.freecodecamp.org/t/build-a-caesar-cipher-step-4/772414/1 "2026-01-03T18:33:39Z")

</div>

### Tell us what’s happening:

I’m not sure why my answer is not being accepted, is it an indentation error?

### Your code so far

```py

# User Editable Region

alphabet = 'abcdefghijklmnopqrstuvwxyz'
shift = 5
shifted_alphabet = alphabet[shift:]
print(shifted_alphabet)
shifted_alphabet= alphabet[shift:] + alphabet [:shift]
print(shifted_alphabet)

# User Editable Region

```

### Your browser information:

User Agent is: `Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36 Edg/143.0.0.0`

### Challenge Information:

Build a Caesar Cipher - Step 4

> **[freeCodeCamp.org](https://www.freecodecamp.org/learn/python-v9/workshop-caesar-cipher/step-4)**
>
> Learn to Code — For Free

---

<div class="post-metadata">

**Author:** ![dhess](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/dhess/32/406235_2.png) [@dhess](https://forum.freecodecamp.org/u/dhess)\
**Post date:** [January 3, 2026, 6:35pm UTC](https://forum.freecodecamp.org/t/build-a-caesar-cipher-step-4/772414/2 "2026-01-03T18:35:51Z")

</div>

Please refer to this topic: [Build a Caesar Cipher - Step 4 - Python - The freeCodeCamp Forum](https://forum.freecodecamp.org/t/build-a-caesar-cipher-step-4/772375/4)

---

<div class="post-metadata">

**Author:** ![AmPr04](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ampr04/32/406880_2.png) [@AmPr04](https://forum.freecodecamp.org/u/AmPr04)\
**Post date:** [January 3, 2026, 6:36pm UTC](https://forum.freecodecamp.org/t/build-a-caesar-cipher-step-4/772414/3 "2026-01-03T18:36:18Z")

</div>

Nevermind, figured it out. Had to delet the previous shift .

New answer  
`removed by mod`

---

<div class="post-metadata">

**Author:** ![JeremyLT](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/jeremylt/32/291894_2.png) [@JeremyLT](https://forum.freecodecamp.org/u/JeremyLT)\
**Post date:** [January 3, 2026, 6:38pm UTC](https://forum.freecodecamp.org/t/build-a-caesar-cipher-step-4/772414/4 "2026-01-03T18:38:11Z")

</div>

Instead of thinking of this as deleting the first line I would think of this as the instructions telling you to modify your code instead of repeating it.

---

<div class="post-metadata">

**Author:** ![mohammed.yahaya](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/mohammed.yahaya/32/407778_2.png) [@mohammed.yahaya](https://forum.freecodecamp.org/u/mohammed.yahaya)\
**Post date:** [January 16, 2026, 2:56pm UTC](https://forum.freecodecamp.org/t/build-a-caesar-cipher-step-4/772414/5 "2026-01-16T14:56:09Z")

</div>

thanks it work after so many attempt

---

<div class="post-metadata">

**Author:** ![pkdvalis](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/pkdvalis/32/350571_2.png) [@pkdvalis](https://forum.freecodecamp.org/u/pkdvalis)\
**Post date:** [January 16, 2026, 3:02pm UTC](https://forum.freecodecamp.org/t/build-a-caesar-cipher-step-4/772414/6 "2026-01-16T15:02:41Z")

</div>

It is great that you solved the challenge, but instead of posting your full working solution, it is best to stay focused on answering the original poster’s question(s) and help guide them with hints and suggestions to solve their own issues with the challenge. [How to Help Someone with Their Code Using the Socratic Method](https://www.freecodecamp.org/news/how-to-help-someone-with-their-code-using-the-socratic-method/)

We are trying to cut back on the number of spoiler solutions found on the forum and instead focus on helping other campers with their questions and definitely not posting full working solutions.

---

<div class="post-metadata">

**Author:** ![walter.carl.stuart](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/walter.carl.stuart/32/410541_2.png) [@walter.carl.stuart](https://forum.freecodecamp.org/u/walter.carl.stuart)\
**Post date:** [March 19, 2026, 8:19pm UTC](https://forum.freecodecamp.org/t/build-a-caesar-cipher-step-4/772414/7 "2026-03-19T20:19:57Z")

</div>

Struggling with the same step.. I can get the right answer I believe but the testing won’t accept my answer..

```auto
alphabet = ‘abcdefghijklmnopqrstuvwxyz’

shift = 5

shifted_alphabet = alphabet[:shift]+alphabet[shift:]

print(shifted_alphabet)

```

---

<div class="post-metadata">

**Author:** ![Jarvis\_T](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/jarvis_t/32/415733_2.png) [@Jarvis\_T](https://forum.freecodecamp.org/u/Jarvis_T)\
**Post date:** [March 19, 2026, 8:21pm UTC](https://forum.freecodecamp.org/t/build-a-caesar-cipher-step-4/772414/8 "2026-03-19T20:21:43Z")

</div>

Hi @walter.carl.stuart , I suggest you create a separated post. This avoids the moderators to come back on an already solved subject.

---

<div class="post-metadata">

**Author:** ![pkdvalis](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/pkdvalis/32/350571_2.png) [@pkdvalis](https://forum.freecodecamp.org/u/pkdvalis)\
**Post date:** [March 20, 2026, 1:10pm UTC](https://forum.freecodecamp.org/t/build-a-caesar-cipher-step-4/772414/9 "2026-03-20T13:10:03Z")

</div>

If you have a question about a specific challenge as it relates to your written code for that challenge and need some help, click the **Help** button located on the challenge.

 ![image](https://global.discourse-cdn.com/freecodecamp/original/4X/9/e/5/9e5d03b4b54808931538e1c967c26d4fe89eb76a.png)

The **Help** button will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.

Thank you.

---

<div class="post-metadata">

**Author:** ![pkdvalis](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/pkdvalis/32/350571_2.png) [@pkdvalis](https://forum.freecodecamp.org/u/pkdvalis)\
**Post date:** [March 20, 2026, 1:10pm UTC](https://forum.freecodecamp.org/t/build-a-caesar-cipher-step-4/772414/10 "2026-03-20T13:10:06Z")

</div>

Closed on March 20, 2026, 1:10pm UTC


