# Getting syntax error

**URL:** <https://forum.codewithmosh.com/t/getting-syntax-error/23294>\
**Category:** Python\
**Created:** [October 27, 2023, 4:03am UTC](https://forum.codewithmosh.com/t/getting-syntax-error/23294 "2023-10-27T04:03:20Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![pappacol](https://avatars.discourse-cdn.com/v4/letter/p/ad7895/32.png) [@pappacol](https://forum.codewithmosh.com/u/pappacol)\
**Post date:** [October 27, 2023, 4:03am UTC](https://forum.codewithmosh.com/t/getting-syntax-error/23294/1 "2023-10-27T04:03:20Z")

</div>

![Screenshot (7)](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/2X/4/471f1a42ba84861b40f5d00123bc29a198d31437.png)  
ran python on command shell

this is getting really frustrating.

---

<div class="post-metadata">

**Author:** ![JerryHobby](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/jerryhobby/32/5370_2.png) [@JerryHobby](https://forum.codewithmosh.com/u/JerryHobby)\
**Post date:** [October 27, 2023, 7:59pm UTC](https://forum.codewithmosh.com/t/getting-syntax-error/23294/2 "2023-10-27T19:59:44Z")

</div>

We can’t see the command you used to invoke this program. It should be something like:

python app.py

If that is what you are doing, then maybe the cat icon is causing some grief. Try taking out the cat and see if that works. If it does, then there’s something odd about the cat.

---

<div class="post-metadata">

**Author:** ![benY](https://avatars.discourse-cdn.com/v4/letter/b/9dc877/32.png) [@benY](https://forum.codewithmosh.com/u/benY)\
**Post date:** [November 1, 2023, 6:21pm UTC](https://forum.codewithmosh.com/t/getting-syntax-error/23294/3 "2023-11-01T18:21:21Z")

</div>

I don’t think the emoji is considered a string. Not sure but I think it is unicode.

---

<div class="post-metadata">

**Author:** ![benY](https://avatars.discourse-cdn.com/v4/letter/b/9dc877/32.png) [@benY](https://forum.codewithmosh.com/u/benY)\
**Post date:** [November 1, 2023, 6:51pm UTC](https://forum.codewithmosh.com/t/getting-syntax-error/23294/4 "2023-11-01T18:51:14Z")

</div>

I also see you are using Python 3.12 so the command should be  
python3 app.py

---

<div class="post-metadata">

**Author:** ![Daniel\_Ley](https://avatars.discourse-cdn.com/v4/letter/d/ccd318/32.png) [@Daniel\_Ley](https://forum.codewithmosh.com/u/Daniel_Ley)\
**Post date:** [November 9, 2023, 9:28am UTC](https://forum.codewithmosh.com/t/getting-syntax-error/23294/5 "2023-11-09T09:28:39Z")

</div>

It looks like you’re typing _Hello World python app.py_ in the embedded terminal. If so, the terminal will try to interpret those as command-line commands (which they’re not).

Perhaps try:

```auto
cd "Hello World" <return> 
python app.py

```

or some variation (I’m not sure about the Windows command line escaping space characters).
