# Python Questions

**URL:** <https://forum.codeselfstudy.com/t/python-questions/1734>\
**Category:** Programming Questions\
**Tags:** python\
**Created:** [August 2, 2019, 6:00am UTC](https://forum.codeselfstudy.com/t/python-questions/1734 "2019-08-02T06:00:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chung\_Loh](https://forum.codeselfstudy.com/letter_avatar_proxy/v4/letter/c/d6d6ee/32.png) [@Chung\_Loh](https://forum.codeselfstudy.com/u/Chung_Loh)\
**Post date:** [August 2, 2019, 6:00am UTC](https://forum.codeselfstudy.com/t/python-questions/1734/1 "2019-08-02T06:00:43Z")

</div>

Hi Josh

Thanks for your email. Here i would like to attach some print screen files to check with you about the sample questions that i ran at PyCharm it shows some errors even though i follow the syntax from the tutorials. Can you please kindly go through it and let me know. Thank you.

Best

Chung

 ![test](https://forum.codeselfstudy.com/uploads/default/original/1X/b0031ea6fc589723da5715bab67082e079bfce42.png)

---

<div class="post-metadata">

**Author:** ![bdjewkes](https://forum.codeselfstudy.com/user_avatar/forum.codeselfstudy.com/bdjewkes/32/7_2.png) [@bdjewkes](https://forum.codeselfstudy.com/u/bdjewkes)\
**Post date:** [August 2, 2019, 5:04pm UTC](https://forum.codeselfstudy.com/t/python-questions/1734/2 "2019-08-02T17:04:06Z")

</div>

Hi Chung,

Welcome to the forum!

It looks to me that your error is coming from a different file than what you have open.  
It appears that you have more than one file named `test.py`, in different directories, and that you’re running the one that is in Pycharm’s open directory (not pictured in the screenshot).

---

<div class="post-metadata">

**Author:** ![Josh](https://forum.codeselfstudy.com/user_avatar/forum.codeselfstudy.com/josh/32/4_2.png) [@Josh](https://forum.codeselfstudy.com/u/Josh)\
**Post date:** [August 2, 2019, 6:25pm UTC](https://forum.codeselfstudy.com/t/python-questions/1734/3 "2019-08-02T18:25:37Z")

</div>

That looks like the problem. To fix it, you can run the program in the current tab by pressing `ctrl-shift-F10`.

Pycharm is running the `test.py` file here (probably open in the tab all the way on the left):

```plaintext
C:/Users/Chung/Pycharm/Projects/practice/test.py

```

You can tell where that file is by the output at the bottom:

 ![image](https://forum.codeselfstudy.com/uploads/default/original/1X/4c7cd4a810ea42f8057b86c2afb552917b4f507b.png)

The editor tab is showing the `test.py` file here:

```plaintext
C:/Users/Chung/Desktop/python practice/test.py

```

You can tell where the file in the tab is located by the “breadcrumbs” at the top:

 ![image](https://forum.codeselfstudy.com/uploads/default/original/1X/f39bf5bfbbea1aeeead1a7e2972d8d30e27342c2.png)
