# Build a Caesar Cipher - Step 15

**URL:** <https://forum.freecodecamp.org/t/build-a-caesar-cipher-step-15/788440>\
**Category:** Curriculum Help\
**Tags:** python\
**Created:** [May 10, 2026, 8:43pm UTC](https://forum.freecodecamp.org/t/build-a-caesar-cipher-step-15/788440 "2026-05-10T20:43:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![lissasiz006](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/lissasiz006/32/352910_2.png) [@lissasiz006](https://forum.freecodecamp.org/u/lissasiz006)\
**Post date:** [May 10, 2026, 8:43pm UTC](https://forum.freecodecamp.org/t/build-a-caesar-cipher-step-15/788440/1 "2026-05-10T20:43:40Z")

</div>

### Tell us what’s happening:

I dont know where else my upper() should go without me making a syntax error ☹

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

# 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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/148.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 10, 2026, 9:15pm UTC](https://forum.freecodecamp.org/t/build-a-caesar-cipher-step-15/788440/2 "2026-05-10T21:15:54Z")

</div>

> Update your `str.maketrans()` call by concatenating to each argument the uppercase version of the argument itself.

You are asked to concatenate the `upper()` version of each argument to itself e.g. `arg1 + arg1.upper(), arg2 + arg2.upper()`

---

<div class="post-metadata">

**Author:** ![lissasiz006](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/lissasiz006/32/352910_2.png) [@lissasiz006](https://forum.freecodecamp.org/u/lissasiz006)\
**Post date:** [May 11, 2026, 8:59am UTC](https://forum.freecodecamp.org/t/build-a-caesar-cipher-step-15/788440/3 "2026-05-11T08:59:36Z")

</div>

thank you so much, I got through 😄

---

<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 8, 2026, 9:00am UTC](https://forum.freecodecamp.org/t/build-a-caesar-cipher-step-15/788440/4 "2026-06-08T09:00:18Z")

</div>

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