r/beneater • • Jul 02 '21

Help with Python, please im SO lost

Post image
0 Upvotes

29 comments sorted by

View all comments

Show parent comments

2

u/Galactic_Empire Jul 02 '21

You’re getting close. Python is just a program like anything else. Ben is just running that program in his terminal giving it parameters (ex: python makerom.py)

Makerom.py is a parameter passed to the python program telling it which file to run.

Without passing any parameters though, the python program runs a live interpreter when you can input python code.

1

u/janovich89 Jul 02 '21

So the terminal can almost.... emulate programs? As in, instead of opening python and having it run a file directly, I can use the Terminal to do both at the same time?

1

u/Galactic_Empire Jul 02 '21

I assume when you say “opening python” you say that because there is a desktop icon which opens up the interpreter? Really what that might be doing is opening a terminal session and running python lol

But you’re right. The terminal is a VERY powerful tool that programmers use daily because it’s so efficient to get stuff done that doesn’t require a GUI and using your mouse.

1

u/janovich89 Jul 02 '21

Oh damn. I guess thats exactly it. So the graphic interface I see to be used with a mouse, thats just an interactive facade really.... And so my idea of "opening python" is less about USING python and more about SEEING the python "app". the command line terminal then, let's me use it without seeing it... more or less ?

1

u/Galactic_Empire Jul 02 '21

Bingo! It’s starting to click. I’d recommend reading a bit more on terminal usage and perhaps look into Vim if you’re interested. I personally don’t use Vim, I use nano for in-terminal edits which is much simpler to use so I’d read up on that if interested.

Though take note that using Vim or Nano are really just for quick edits imo. There are people that write whole programs with it but that’s really not practical for large applications.

I saw someone else recommended to use VSCode and I’d recommend that too. Especially because it has a big green button that lets you run your code :)

It really shouldn’t be too bad following along with Ben either. Maybe experiment with both? Wouldn’t hurt.

1

u/janovich89 Jul 02 '21

Soon as I get some lunch made for my kids I'll go grab my computer and start downloading things and experimenting and reading up. Thank you so much for all your help I really appreciate you being patient LOL you're good at explaining things!