# Build a Caesar Cipher - Step 10

**URL:** <https://forum.freecodecamp.org/t/build-a-caesar-cipher-step-10/771490>\
**Category:** Curriculum Help\
**Tags:** python\
**Created:** [December 26, 2025, 10:36am UTC](https://forum.freecodecamp.org/t/build-a-caesar-cipher-step-10/771490 "2025-12-26T10:36:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![serginhoedouazin13](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/serginhoedouazin13/32/380341_2.png) [@serginhoedouazin13](https://forum.freecodecamp.org/u/serginhoedouazin13)\
**Post date:** [December 26, 2025, 10:36am UTC](https://forum.freecodecamp.org/t/build-a-caesar-cipher-step-10/771490/1 "2025-12-26T10:36:46Z")

</div>

### Tell us what’s happening:

my code is right but it won’t pass no matter how much

### Your code so far

```py

# User Editable Region

def caesar():
    shift = 5
    alphabet = 'abcdefghijklmnopqrstuvwxyz'
    shifted_alphabet = alphabet[shift:] + alphabet [: shift]
    translation_table = str.maketrans(alphabet, shifted_alphabet)
    text = 'hello world'
    encrypted_text = text.translate(translation_table)
    print(encrypted_text)
    print('Caesar')

# 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 10

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

---

<div class="post-metadata">

**Author:** ![Teller](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/teller/32/412338_2.png) [@Teller](https://forum.freecodecamp.org/u/Teller)\
**Post date:** [December 26, 2025, 10:41am UTC](https://forum.freecodecamp.org/t/build-a-caesar-cipher-step-10/771490/2 "2025-12-26T10:41:55Z")

</div>

Welcome to the forum @serginhoedouazin13

I looks like you modified the order of the code, and added an extra space in the code.

You also added a new `print` call.

Please reset the step to restore the seed code and try again.

Happy coding

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [May 7, 2026, 6:47pm UTC](https://forum.freecodecamp.org/t/build-a-caesar-cipher-step-10/771490/3 "2026-05-07T18:47:17Z")

</div>

Closed on May 7, 2026, 6:47pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
