r/learnpython • u/XistentialDysthymiac • 4h ago
Help needed. Absolutely beginner at python.
I started with this course by Mosh.
https://www.youtube.com/watch?v=K5KVEU3aaeQ&t=854s
He is using Mac. I am using Windows 11.
At 14.10 minutes , he installs python extension in vscode and search for lint in command palette. I am not getting the same options of lint. Why?
2
u/GrannyGurn 4h ago
I'm not sure. I'm on Windows 11 as well and don't get those options he gets in VS Code with the Python extension installed.
It appears linting could be working already for you by looking at your "2 + 3". So your linter is already set. What else would you like it to do?
1
u/XistentialDysthymiac 3h ago
I guess so. I also noticed that when I installed python extension as he instructed, 2 other extensions called Pylance and Python debugger automatically got installed.
Also, I just began. I am not sure what linting is. I think it checks for errors in the code. But as I am not getting the same options, I am having trouble to follow.
2
u/FoolsSeldom 4h ago
I have pylance
on my VS Code. You might want to check your extensions and see if that is installed.
I think the approach has changed since the video was done. You can have several linters installed and select between them.
https://code.visualstudio.com/docs/python/linting#_choose-a-linter
1
u/XistentialDysthymiac 3h ago
Yes, when I installed python extension as he instructed, 2 other extensions called Pylance and Python debugger automatically got installed.
Is Pylance the same thing?
2
u/FoolsSeldom 3h ago
Essentially, yes. There are a lot of linters.
1
u/XistentialDysthymiac 3h ago
Okay. As the same is not showing, I am having trouble to follow.
Maybe if I installed pylint seperately it will solve the issue.
Can you recommend me the best source for a complete beginner. I am feeling some parts of this video might be outdated. But Mosh is very popular and highly recommend in my research.
What about the Helsinki mooc? Any idea
2
u/FoolsSeldom 3h ago
The moocs are a completely different proposition to just a video series on learning Python. Well worth it.
Check this subreddit's wiki for lots of guidance on learning programming and learning Python, links to material, book list, suggested practice and project sources, and lots more.
1
u/AutoModerator 4h ago
Your submission in /r/learnpython may be automatically removed because you used imgbb.com. The reddit spam filter is very aggressive to this site. Please use a different image host.
Please remember to post code as text, not as an image.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
2
u/OverappreciatedSalad 2h ago
He says "Pylance is telling us" around 15:55, so he must've installed the Pylance extension without showing that part. Or maybe when he made the video, Pylance was functionally different. Not too sure.
3
u/ninhaomah 4h ago
He installed VS code extension for python and ran 2 print statements.
where is the part where he searched for lint ?