Learning Python

For interesting topics. But remember this is a Linux Forum. Do not post offensive topics that are meant to cause trouble with other members or are derogatory towards people of different genders, race, color, minors (this includes nudity and sex), politics or religion. Let's try to keep peace among the community and for visitors.

No spam on this or any other forums please! If you post advertisements on these forums, your account may be deleted.

Do not copy and paste entire or even up to half of someone else's words or articles into posts. Post only a few sentences or a paragraph and make sure to include a link back to original words or article. Otherwise it's copyright infringement.

You can talk about other distros here, but no MX bashing. You can email the developers of MX if you just want to say you dislike or hate MX.
Message
Author
User avatar
Buck Fankers
Posts: 770
Joined: Sat Mar 10, 2018 8:06 pm

Re: Learning Python

#11 Post by Buck Fankers »

AK-47 wrote: Tue Dec 15, 2020 1:33 am Might I ask, why start with Python? You are probably better off with something like Rust or C/C++ these days. PERL can come in handy too I suppose, but I don't know PERL myself, so probably not as essential as one might think.
There is no better language than python to start with. It is by far the easiest to learn, and you can do so many different things with it. It is currently #2 among the all programming languages!

User avatar
Buck Fankers
Posts: 770
Joined: Sat Mar 10, 2018 8:06 pm

Re: Learning Python

#12 Post by Buck Fankers »

sbrener wrote: Wed Dec 16, 2020 3:05 pm Is there any customization that one needs to do after installing Visual Studio?
Not using it myself much, but I know there is one thing you need to do, look at the left side, left bar, there are 5 icons, the bottom one is called "Extensions". Click on it, then into entry field type: Python and install the top one entry, that has over 28M downloads, that one is a must for running Python in VSCode. (I think, if you would type in main window:

Code: Select all

print('test')  
and save it as somefilename.py you would get offer from VSCode to automatically install this python extension)

Once installed, just try, type in main window:

Code: Select all

print('test')  
But you can't run it yet. You need to save it somewhere with any name, but need to end with: .py so VSCode "knows" it is python script. Once saved, you should see upper right corner small green arrow. Well small green triangle. Click on it and script should execute. And you are good to go :)

If nothing happens, look bottom left corner, line that is purple highlighted, click on it and see if you can choose python from drop down menu. If you have few virtual environments (probably not yet) they should be there.

If I find some YT video explaining these first steps, I will post it here.

If you really want to get good help, do register at Reddit and ask questions here:

https://www.reddit.com/r/learnpython/new/

It is dedicated for helping beginners with python related questions, perfect for your case.

Here, where you are asking now, is forum dedicated for help with MX Linux ;-)

User avatar
say_hello
Posts: 158
Joined: Thu Jul 04, 2019 10:46 am

Re: Learning Python

#13 Post by say_hello »

hello mxmatrix, sbrenner, Ak-47, mxmatrix, JayM, Buck Fankers,
hello dear community :happy:

many thanks for the great ressources - regarding learning-stuff, good reads and all that things.


i have installed VSCodium on one notebook - and this runs well. Just wanted to install on a second Notebook and there
i run the package installer:

MS VSCode - i click yes... and

Code: Select all

Paketlists were being read..
... Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

100   983  100   983    0     0   2908      0 --:--:-- --:--:-- --:--:--  2908
OK:1 http://deb.debian.org/debian buster-updates InRelease
OK:2 http://deb.debian.org/debian buster InRelease
OK:3 http://deb.debian.org/debian-security buster/updates InRelease
OK:4 http://ftp.halifax.rwth-aachen.de/mxlinux/packages/mx/repo buster InRelease
OK:5 http://dl.google.com/linux/chrome/deb stable InRelease
OK:6 https://packages.microsoft.com/repos/vscode stable InRelease
OK:7 https://packagecloud.io/AtomEditor/atom/any any InRelease
Paketlists were being read..

E: the dpkg-Prozess stopped; you hae to run manually »dpkg --configure -a« ausführen, to fix the things here.

well something failed here...


but i am pretty sure that we can sort things out here...

:happy:

Post Reply

Return to “General”