#🔒 python guide for regular people

185 messages · Page 1 of 1 (latest)

distant leafBOT
#

@zealous swan

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.

misty gate
#

Okay I will

fringe apex
#

!res try to go through these resources and see if they are good for you

distant leafBOT
#
Resources

The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.

zealous swan
#

They just confused me

#

Anything else?

#

like videos?

misty gate
#

Like you know basics or nah

zealous swan
misty gate
misty gate
fringe apex
# zealous swan I've never used python before

I don't have a direct link to a video but there are full python courses on youtube which will help you learn the basics and then go through some other course / make your own projects, you'll learn a lot

#

and if you encounter any problems / you don't understand something ask here and a lot of people will help you

zealous swan
#

What does no such file/directory mean?

fringe apex
#

it means from the directory you are running the program you can't see the file you're trying to access, its like looking for an image that is in documents when you are in downloads

#

you have to move to that location or you have to move the file to your location

zealous swan
#

how do I do that?

fringe apex
#

write cd "directory where is your python file"
and then python yourfilename.py

zealous swan
#

"The system cannot find the path specified"

fringe apex
#

copy the whole path

zealous swan
#

I did

fringe apex
#

including the c: on the start or d: anything u have there

zealous swan
#

yep

fringe apex
#

and did you remove the filename?

zealous swan
#

can you show me an example?

#

I copy and pasted what you sent me

fringe apex
#

bad: cd "c:\users\...\file.py"
good: cd "c:\users\...\"

zealous swan
#

I'm lost now

fringe apex
#

no problem

#

where is your python file located?

zealous swan
#

I don't know

misty gate
zealous swan
misty gate
zealous swan
misty gate
fringe apex
#

create a file:
test.py
write print("hello world") inside
and run it using python test.py
it will execute everything inside of test.py

zealous swan
#

y'all are just confusing me more

#

I have command prompt open

fringe apex
#

yep nice

#

do you have a python file?

zealous swan
#

I have python installed

#

Idk what file you're talking about

fringe apex
#

okay I see

#

you will need to create a file

zealous swan
#

How?

fringe apex
#

where you will write your code

#

do you know how to create a text file?

zealous swan
#

no

fringe apex
#

do you know how to use windows explorer?

#

to browse files?

zealous swan
#

yes

misty gate
fringe apex
misty gate
#

Thank you

zealous swan
misty gate
fringe apex
# zealous swan yes

okay, you want to follow some tutorial on basic python, it will show you how to create and edit a python file

fringe apex
#

then when you have it, it will show up in file explorer

#

then you can run it with console

fringe apex
zealous swan
#

please slow down I have no idea what those words mean

fringe apex
#

sorry

zealous swan
#

what exactly do I search up?

zealous swan
#

how to make a file with python?

misty gate
distant leafBOT
#
Resources

The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.

misty gate
fringe apex
misty gate
zealous swan
#

can we please stick to one thing at a time?

fringe apex
#

you are going to make a program that says hello world!

zealous swan
#

Also kiddo you're not being helpful so please stop replying

karmic wasp
fringe apex
misty gate
zealous swan
fringe apex
#

alr, gimme a minute

zealous swan
#

thank you

karmic wasp
fringe apex
misty gate
# karmic wasp <@1317240871221067887> bro I am tryed that but it's paid so I feel u okay , if u...

Automate the Boring Stuff is a really good book for complete beginners and it's free to read online: https://automatetheboringstuff.com/#toc
If you prefer to watch video tutorials Corey Schafer's playlist is also really good: https://www.youtube.com/playlist?list=PL-osiE80TeTskrapNbzXhwoFUiLCjGgY7
I also recommend Harvard’s free online course, CS50P: Introduction to Programming with Python: https://pll.harvard.edu/course/cs50s-introduction-programming-python
This is an alternative online course with lots of integrated practice problems you can do directly in the browser: https://programming-25.mooc.fi/

fringe apex
#

I recommend installing visual studio code (VSCode)

#

tell me when you got it @zealous swan

zealous swan
#

It's installed

fringe apex
#

nice open it now

zealous swan
#

it's open

fringe apex
#

now, open file explorer, create a folder called python on desktop

#

and in the vscode you want to "open folder" and select that folder

#

this will be the place where you have your python projects

zealous swan
#

okay

#

It's open

fringe apex
#

nice, right click on the left bar and create a file, name it file.py

#

if theres a popup to install recommended python extension, install it

zealous swan
#

nothing happens when I right click

fringe apex
#

can you send a screenshot?

#

might be better for me to see

zealous swan
#

see what?

fringe apex
#

your screen

#

so I can guide you better

zealous swan
#

I don't have an option to create a file

fringe apex
misty gate
#

In vscode

zealous swan
fringe apex
#

but now

misty gate
#

Create now dawg

fringe apex
#

write

print("hello world!")

into the file and gimme a sec

misty gate
#

Type thing like print(“hello world”)

fringe apex
#

click on the file

#

and write this in it

zealous swan
#

done

fringe apex
#

save it with ctrl + s

#

the white dot on the top (next to the file name) should disappear

zealous swan
#

okay

misty gate
#

turn on auto save

fringe apex
#

this is too complex

#

for now

zealous swan
#

I never had a white dot

fringe apex
#

can you send a screenshot of what you see on the screen?

misty gate
zealous swan
fringe apex
#

sure

#

that'll help a lot

misty gate
zealous swan
fringe apex
fringe apex
zealous swan
#

How is this supposed to help me install?

fringe apex
#

do you see a triangle to run the file on the right top of the screen?

zealous swan
#

No

fringe apex
misty gate
zealous swan
fringe apex
#

wait what are you trying to install

zealous swan
#

A program

misty gate
#

Bruh

fringe apex
#

why did you say you wanted a python guide ?

zealous swan
fringe apex
#

every program has its own install process, you need to follow that

misty gate
fringe apex
#

python guide for regular people sounds like you wanted to learn how to code

#

you need to say how to install a programm

#

if you don't want to learn how to code you can uninstall the vscode

misty gate
#

I still can’t understand what point of all this

#

He just wanted python ?

zealous swan
fringe apex
zealous swan
#

when I try to install it says program already installed

fringe apex
zealous swan
#

how?

fringe apex
#

I've got no context to work with here

misty gate
#

I’m disappointed

fringe apex
#

if its a program you need to run python file.py
if its something else like an exe you need to double click it

zealous swan
misty gate
fringe apex
#

could you give more info?

misty gate
#

It will be so much easier if you do

fringe apex
fringe apex
#
  1. open file explorer
  2. navigate to where you installed it
  3. click the navigation bar so you can type there
  4. type cmd and press enter
  5. run python programname.py
zealous swan
fringe apex
#

what are you installing?

#

a script?
an application?
an installer?

zealous swan
#

program

fringe apex
#

😭 what is the name of the program

distant leafBOT
#
Python help channel closed using Discord native close action

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.