# Syntax error on Output

**URL:** <https://forum.codewithmosh.com/t/syntax-error-on-output/28012>\
**Category:** Uncategorized\
**Created:** [August 1, 2024, 6:57pm UTC](https://forum.codewithmosh.com/t/syntax-error-on-output/28012 "2024-08-01T18:57:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Muki1985](https://avatars.discourse-cdn.com/v4/letter/m/7bcc69/32.png) [@Muki1985](https://forum.codewithmosh.com/u/Muki1985)\
**Post date:** [August 1, 2024, 6:57pm UTC](https://forum.codewithmosh.com/t/syntax-error-on-output/28012/1 "2024-08-01T18:57:58Z")

</div>

Hey guys,  
Complete beginner here. im getting this syntax error on the output (works on terminal). Any idea why?

 ![Screenshot 2024-08-01 at 21.54.03](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/2X/5/5c814311b1207fb170c99950d22e8486be84908a.png)

thanks for the helpers:)

---

<div class="post-metadata">

**Author:** ![theorion](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/theorion/32/7783_2.png) [@theorion](https://forum.codewithmosh.com/u/theorion)\
**Post date:** [August 1, 2024, 8:05pm UTC](https://forum.codewithmosh.com/t/syntax-error-on-output/28012/2 "2024-08-01T20:05:09Z")

</div>

It’s pointing to the parenthesis, i don’t know python, but you could copy paste the code into chatgpt then paste the error and see if it can help you.

Warning as a best practice try not to copy code from chatgpt into vs code but use it to manually find and fix errors. But it’s usually good at syntax.

I can say for sure exit 1 is error, exit 0 is success
