# Console doesn´t work in VS Code even though the interactive window works fine

**URL:** <https://forum.codewithmosh.com/t/console-doesn-t-work-in-vs-code-even-though-the-interactive-window-works-fine/71425>\
**Category:** Python\
**Created:** [August 27, 2025, 2:24pm UTC](https://forum.codewithmosh.com/t/console-doesn-t-work-in-vs-code-even-though-the-interactive-window-works-fine/71425 "2025-08-27T14:24:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![FraukeNora](https://avatars.discourse-cdn.com/v4/letter/f/2bfe46/32.png) [@FraukeNora](https://forum.codewithmosh.com/u/FraukeNora)\
**Post date:** [August 27, 2025, 2:24pm UTC](https://forum.codewithmosh.com/t/console-doesn-t-work-in-vs-code-even-though-the-interactive-window-works-fine/71425/1 "2025-08-27T14:24:05Z")

</div>

Hey hey so this might sound weird but when I write code (Python code in VSCode) and run it in the interactive window, everything is fine. The output looks good, the code is correct, everything is great.

However, everytime I run the code via the console (using keyboard shortcuts), I get a plentitude of error messages and it looks like I did everything wrong.

Does anyone have the same issue? Or does anyone know why this might happen?

I´d be grateful for any advice!
