# Vscode says there are problems in my code but it's working?

**URL:** <https://forum.codewithmosh.com/t/vscode-says-there-are-problems-in-my-code-but-its-working/21051>\
**Category:** Python\
**Created:** [June 24, 2023, 4:54pm UTC](https://forum.codewithmosh.com/t/vscode-says-there-are-problems-in-my-code-but-its-working/21051 "2023-06-24T16:54:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fr0stBeast](https://avatars.discourse-cdn.com/v4/letter/f/7993a0/32.png) [@Fr0stBeast](https://forum.codewithmosh.com/u/Fr0stBeast)\
**Post date:** [June 24, 2023, 4:54pm UTC](https://forum.codewithmosh.com/t/vscode-says-there-are-problems-in-my-code-but-its-working/21051/1 "2023-06-24T16:54:30Z")

</div>

Vscode says there are problems in my code but its running this is irrating me a lot

 ![Screenshot 2023-06-24 185415](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/2X/4/4baf4ce5194bf1ecd5ac119af905ef626d2f57a8.png)

---

<div class="post-metadata">

**Author:** ![mo\_mo](https://avatars.discourse-cdn.com/v4/letter/m/f19dbf/32.png) [@mo\_mo](https://forum.codewithmosh.com/u/mo_mo)\
**Post date:** [June 24, 2023, 6:55pm UTC](https://forum.codewithmosh.com/t/vscode-says-there-are-problems-in-my-code-but-its-working/21051/2 "2023-06-24T18:55:55Z")

</div>

Give your file another name (You are using math.py as the name). Your editor is getting confused. When you attempt to import the math from the standard library, You editor assumes it is looking at the file you currently have. I am only assuming this is your issue based on the first two problems. Try naming it math\_1.py and see if that fixes your problem

---

<div class="post-metadata">

**Author:** ![Fr0stBeast](https://avatars.discourse-cdn.com/v4/letter/f/7993a0/32.png) [@Fr0stBeast](https://forum.codewithmosh.com/u/Fr0stBeast)\
**Post date:** [June 24, 2023, 7:32pm UTC](https://forum.codewithmosh.com/t/vscode-says-there-are-problems-in-my-code-but-its-working/21051/3 "2023-06-24T19:32:45Z")

</div>

It is still giving 2 problems so its better but why is some of the code underlined? sorry I am still new to vscode

---

<div class="post-metadata">

**Author:** ![Juvelix](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/juvelix/32/6169_2.png) [@Juvelix](https://forum.codewithmosh.com/u/Juvelix)\
**Post date:** [June 26, 2023, 1:46pm UTC](https://forum.codewithmosh.com/t/vscode-says-there-are-problems-in-my-code-but-its-working/21051/5 "2023-06-26T13:46:17Z")

</div>

Are you refering to the following “Problems” 🙂 ?  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/2X/b/bacde53e9a387ebd66a0b387eb70db550a4aef1d.png)

If Yes those 2 underlines are coming from Pylint the code analyzer you’re using, and inform you that you’re not following the coding conventions in python according to pep8 and can read more about them in:  
[invalid-name / C0103 - Pylint 2.17.4 documentation](https://pylint.readthedocs.io/en/stable/user_guide/messages/convention/invalid-name.html) ,  
[missing-module-docstring / C0114 - Pylint 2.17.4 documentation](https://pylint.readthedocs.io/en/stable/user_guide/messages/convention/missing-module-docstring.html)
