# Build a movie ticket booking calculator step 18

**URL:** <https://forum.freecodecamp.org/t/build-a-movie-ticket-booking-calculator-step-18/800129>\
**Category:** Curriculum Help\
**Tags:** python\
**Created:** [September 14, 2026, 1:26am UTC](https://forum.freecodecamp.org/t/build-a-movie-ticket-booking-calculator-step-18/800129 "2026-09-14T01:26:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jacely3](https://avatars.discourse-cdn.com/v4/letter/j/a6a055/32.png) [@Jacely3](https://forum.freecodecamp.org/u/Jacely3)\
**Post date:** [September 14, 2026, 1:26am UTC](https://forum.freecodecamp.org/t/build-a-movie-ticket-booking-calculator-step-18/800129/1 "2026-09-14T01:26:48Z")

</div>

## Tell us what’s happening:

I have been getting the same message “You should declare a variable named service\_charges inside your last if statement body.” I have changed different parts of my code, searched on Google, and looked on the forum but have not been able to figure it out.

## Your code so far

```python

```

 ![1591](https://global.discourse-cdn.com/freecodecamp/original/4X/6/c/1/6c10dd5918c86720c2a4e019a5a7da10e6766a0e.jpeg)

##

---

<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:** [September 14, 2026, 1:48am UTC](https://forum.freecodecamp.org/t/build-a-movie-ticket-booking-calculator-step-18/800129/2 "2026-09-14T01:48:23Z")

</div>

Welcome to the forum @Jacely3

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.

Try indenting line 38.

Happy coding
