# Build a Caesar Cipher - Step 15

**URL:** <https://forum.freecodecamp.org/t/build-a-caesar-cipher-step-15/788062>\
**Category:** Curriculum Help\
**Tags:** python\
**Created:** [May 7, 2026, 12:45pm UTC](https://forum.freecodecamp.org/t/build-a-caesar-cipher-step-15/788062 "2026-05-07T12:45:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sarahmahvy](https://avatars.discourse-cdn.com/v4/letter/s/858c86/32.png) [@sarahmahvy](https://forum.freecodecamp.org/u/sarahmahvy)\
**Post date:** [May 7, 2026, 12:45pm UTC](https://forum.freecodecamp.org/t/build-a-caesar-cipher-step-15/788062/1 "2026-05-07T12:45:17Z")

</div>

### Tell us what’s happening:

I added the uppercase version but it is not working what am I missing here?

### Your code so far

```py
def caesar(text, shift):
    alphabet = 'abcdefghijklmnopqrstuvwxyz'
    shifted_alphabet = alphabet[shift:] + alphabet[:shift]

# User Editable Region

    translation_table = str.maketrans(alphabet.upper(), shifted_alphabet.upper())

# User Editable Region

    return text.translate(translation_table)
encrypted_text = caesar('freeCodeCamp', 3)
print(encrypted_text)

```

### Your browser information:

User Agent is: `Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/147.0.0.0 Safari/537.36`

### Challenge Information:

Build a Caesar Cipher - Step 15

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

Github Link: [https://github.com/freeCodeCamp/freeCodeCamp/blob/main/curriculum/challenges/english/blocks/workshop-caesar-cipher/6818fcb250f34e62cab32c39.md](https://github.com/freeCodeCamp/freeCodeCamp/blob/main/curriculum/challenges/english/blocks/workshop-caesar-cipher/6818fcb250f34e62cab32c39.md)

---

<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:** [May 7, 2026, 12:49pm UTC](https://forum.freecodecamp.org/t/build-a-caesar-cipher-step-15/788062/2 "2026-05-07T12:49:51Z")

</div>

Welcome to the forum @sarahmahvy!

This is the starting code:` translation_table = str.maketrans(alphabet, shifted_alphabet)`

The instruction is asking you to concatenate the upper version of each argument to the argument itself.

So it would be something like this: `str.maketrans(arg1 + arg1.upper(), ...)`

Happy coding!

---

<div class="post-metadata">

**Author:** ![sarahmahvy](https://avatars.discourse-cdn.com/v4/letter/s/858c86/32.png) [@sarahmahvy](https://forum.freecodecamp.org/u/sarahmahvy)\
**Post date:** [May 7, 2026, 1:47pm UTC](https://forum.freecodecamp.org/t/build-a-caesar-cipher-step-15/788062/3 "2026-05-07T13:47:24Z")

</div>

okay got it thank you so much!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/freecodecamp/original/3X/e/1/e1c433102e34b46dfaa3e15d13ab9a514b127078.svg) [@system](https://forum.freecodecamp.org/u/system)\
**Post date:** [June 4, 2026, 1:47pm UTC](https://forum.freecodecamp.org/t/build-a-caesar-cipher-step-15/788062/4 "2026-06-04T13:47:28Z")

</div>

Closed on June 4, 2026, 1:47pm UTC

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