# Unit 1, Lesson 9 - Running Python Code

**URL:** <https://forum.codewithmosh.com/t/unit-1-lesson-9-running-python-code/545>\
**Category:** Python\
**Created:** [November 6, 2020, 6:49pm UTC](https://forum.codewithmosh.com/t/unit-1-lesson-9-running-python-code/545 "2020-11-06T18:49:06Z")\
**Posts on this page:** 4\
**Page:** 2

<div class="post-metadata">

**Author:** ![SumanMitra](https://avatars.discourse-cdn.com/v4/letter/s/dec6dc/32.png) [@SumanMitra](https://forum.codewithmosh.com/u/SumanMitra)\
**Post date:** [August 23, 2022, 5:48pm UTC](https://forum.codewithmosh.com/t/unit-1-lesson-9-running-python-code/545/22 "2022-08-23T17:48:35Z")

</div>

[Python 3.10.6 in windows 10]  
Cntl + Alt + n opens the code runner terminal, but shows error. I am unable to understand why.  
When the same code is run via (Cntl + ~ ) it shows the correct results.  
PFA the screenshot

 ![image](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/2X/9/9be90fa09e7bb6dff11fd7e9627deb3f55c78d7d.png)

---

<div class="post-metadata">

**Author:** ![jmrunkle](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/jmrunkle/32/3765_2.png) [@jmrunkle](https://forum.codewithmosh.com/u/jmrunkle)\
**Post date:** [August 23, 2022, 6:29pm UTC](https://forum.codewithmosh.com/t/unit-1-lesson-9-running-python-code/545/23 "2022-08-23T18:29:30Z")

</div>

@SumanMitra - Please create a new topic for tangential issues like that. Resurrecting a 2 year old thread is probably not helpful.

---

<div class="post-metadata">

**Author:** ![SumanMitra](https://avatars.discourse-cdn.com/v4/letter/s/dec6dc/32.png) [@SumanMitra](https://forum.codewithmosh.com/u/SumanMitra)\
**Post date:** [August 24, 2022, 6:02am UTC](https://forum.codewithmosh.com/t/unit-1-lesson-9-running-python-code/545/24 "2022-08-24T06:02:51Z")

</div>

Hi jmrunkle, thanks for your response; created a new topic with subject - " [Ctrl + Alt + n opens code runner terminal but shows errors](https://forum.codewithmosh.com/t/ctrl-alt-n-opens-code-runner-terminal-but-shows-errors/14664).

---

<div class="post-metadata">

**Author:** ![Kaloman](https://avatars.discourse-cdn.com/v4/letter/k/e19b73/32.png) [@Kaloman](https://forum.codewithmosh.com/u/Kaloman)\
**Post date:** [January 20, 2023, 6:53pm UTC](https://forum.codewithmosh.com/t/unit-1-lesson-9-running-python-code/545/25 "2023-01-20T18:53:11Z")

</div>

For anyone that comes to this thread looking for answers.  
Here is a recent video (Early 2022) Where someone did a good job of amending the code-runner.

[![](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/2X/4/428ac9a3aae5f93d16b7cb0f2936836d650ec10b.jpeg "How to set code runner for python3 in visual studio code") ](https://www.youtube.com/watch?v=fjTMUnSAPRQ)

Just be aware that as with everything else this might be out of date so just search  
visual studio code python code-runner.executormap in youtube and you’ll find more recent videos

[Previous page](https://forum.codewithmosh.com/t/unit-1-lesson-9-running-python-code/545.md?page=1)
