#๐ im verry new to phyton can someone help please?
97 messages ยท Page 1 of 1 (latest)
@edgy bone
Remember to:
- Ask your Python question, not if you can ask or if there's an expert who can help.
- Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
- Explain what you expect to happen and what actually happens.
:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.
can someone tell me how to instal it? im verry new to this
tysm!!
hey can you help me one more time?
so i cant find the linter in the pallete can you help me? ive have already installed pyhton in the extension but i cant find it
I'm afraid I haven't used vsc in a while
Go to extensions, go to the extension and find a button to compile it/start it
to enable it? the its already enabled
oh ok, so it should work.
try the second tab in the search bar
Wait give me a sec
cough
I havenโt done this in a while
lol its okay
ja
alright so
Your going to open the VSC command palette with pressing Ctrl+Shift+P, then find the option "Preferences: Open Settings (UI)" once your in there, find โlintingโ and scroll down and enable Python โบ Linting: Enabled
Then enable a specific linter like Pylint or Flake8
@edgy bone
Can you do this or no
hold on im trying
Alright ill wait
๐
No no
Yeah my bad
It could show up like that or like lint
If you donโt see it I have another method
Just tell me if it dooesnt work
i can find lint but not the phton
Try flake8
its css less and css
^
how?
Press Ctrl+Shift+P
yes its to pen the pallete
that's all set up, it shows 3.13.5 in the corner here
why is it the problem?
can you tell me please
because of the syntax you wrote 2+
type something like a print("hello world")
to see if itm wroks
then what?
open the terminal
wth is a cd ๐
?? they just want linting
I guess the python extension doesn't include a linter? might be wrong, I don't rmb
just follow this @edgy bone
im reading
witch linter should i chose?
for beginer
cd stands for change directory but your far away from terminal commands
Stick to understanding basic VSC codes modules and other configurations.
are you a beginner to programming in general, or to python specifically?
๐คฆ
to programming
why do you want to use a linter?
to see potential erors?
the general purpose linters are not for errors, they are for code style, like, bad code practices. its not inherently an error, just not "good" code
though there are stuff like linters for common security vulnerabilities
ahh
I would recommend you learn configurations and what things do, for example what lingers do
Linters *
i watch python tut and he says "analyizing our code for potential erors"
the ms-python extension comes with everything needed to do that bit
^you just need to turn it on, its off by default (unless you mean analyzing for syntax errors, which is on by default)
should be called something like python: typechecking mode in the settings
though, note that this finds type errors, not logical ones (unless the logical ones stem from types, e.g. checking whether something is of a certain type when you declared that it shouldnt be). there is no way for a program to know what you had in mind, so it cant know whether the code actually solves the problem correctly or not
i also suggest installing the Error Lens extension on vsc to make them "stand out" more
from experience, i wouldn't recommend using a linter to a beginner, because i've seen to many beginners fight the linter thinking that their code is wrong, when really its just style nitpicks
basically a distraction
have you already chosen a resource that you'll use to learn python? like a book or something
I'm still trying to find one, any recommendations?
#python-discussion message lists some, a lot of people here have done "automate the boring stuff"/cs50p as a general introduction, and "real python" has a bunch of well-written articles on specific topics
also, this server is one of the best resources too: humans tend to be good at answering questions of other humans, or, atleast, better than search engines a lot of the time. and you dont even have to ask something to learn, you can just lurk in someone's conversation and learn something, or someone will tell you something interesting even though you asked for something a bit different but related.
being around like-minded people with knowledge is really good
Okii
This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.
