#๐Ÿ”’ im verry new to phyton can someone help please?

97 messages ยท Page 1 of 1 (latest)

wise terraceBOT
#

@edgy bone

Python help channel opened

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.

edgy bone
#

can someone tell me how to instal it? im verry new to this

still pasture
edgy bone
still pasture
#

I'm afraid I haven't used vsc in a while

edgy bone
#

ohh

#

okay then thank you for helping me for installing

wind nebula
edgy bone
wind nebula
#

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

edgy bone
#

lol its okay

wind nebula
#

So you have it installed right

#

@edgy bone

edgy bone
#

ja

wind nebula
#

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

edgy bone
#

hold on im trying

wind nebula
#

Alright ill wait

edgy bone
wind nebula
#

No no

edgy bone
#

ahh i see

#

its lint

wind nebula
#

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

edgy bone
wind nebula
#

Try flake8

edgy bone
#

its css less and css

wind nebula
edgy bone
#

negative

wind nebula
#

okay then

#

Weโ€™re going to do this

#

First let me check

edgy bone
#

how?

wind nebula
#

Press Ctrl+Shift+P

edgy bone
#

yes its to pen the pallete

wind nebula
#

โ†’ Python: Select Interpreter

#

Send SS

edgy bone
still pasture
wind nebula
#

Oh I should read the docs ๐Ÿ˜ญ

#

dumb me

edgy bone
#

can you tell me please

atomic maple
#

type something like a print("hello world")

#

to see if itm wroks

edgy bone
atomic maple
#

open the terminal

edgy bone
atomic maple
#

cd to your code location

#

and then type

edgy bone
still pasture
#

I guess the python extension doesn't include a linter? might be wrong, I don't rmb

still pasture
edgy bone
#

witch linter should i chose?

#

for beginer

wind nebula
#

Stick to understanding basic VSC codes modules and other configurations.

celest ridge
wind nebula
#

๐Ÿคฆ

celest ridge
#

why do you want to use a linter?

edgy bone
#

to see potential erors?

celest ridge
#

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

wind nebula
#

I would recommend you learn configurations and what things do, for example what lingers do

#

Linters *

edgy bone
#

i watch python tut and he says "analyizing our code for potential erors"

wind nebula
#

Itโ€™s better to just read documents

#

They tell the whole like definitions

still pasture
celest ridge
# still pasture 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

latent galleon
#

i also suggest installing the Error Lens extension on vsc to make them "stand out" more

celest ridge
edgy bone
#

ohh

#

also thank for all of you, you guys helping me learn so much

celest ridge
#

have you already chosen a resource that you'll use to learn python? like a book or something

edgy bone
celest ridge
# edgy bone 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

wise terraceBOT
#
Python help channel closed for inactivity

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.