Here I will publish some materials about stuff I learn by myself or from the books
Installing PYTHON:
- Download https://code.visualstudio.com/
- Run the programm
- Install Python Extension and close the app
- download and install Python from https://www.python.org/downloads/
- Launch Visual Code again and in the left bottom choose the interpreter for Python. You will see a few tabs in the middle on the top of the VS Code and there you should see something like Python 3.8.5 (and a path below it). IF IT SHOWS YOU ONLY ONE OPTION - THAT YOU NEED TO GIVE HIM A PATH TO THE FILE - DO IT, IT SHOULD HELP, OTHERWISE REINSTALL PYTHON
- PROFIT !!! try this extension out by making a new file with .py in the end (EXAMPLE.py) and printing Hello World: print ("Hello World") run this programm
Installing pip (SKIP THIS PIECE OF GUIDE IF YOU'VE ALREADY INSTALLED PYTHON VERSION 3.6>):
- https://pip.pypa.io/en/stable/installing/
- curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
- python get-pip.py type this one in shell
Upgrading pip:
- MAC\LINUX: pip install -U pip
- WINDOWS: python -m pip install -U pip
Upgrading all python packages:
- pip list --outdated --format=freeze | grep -v '^-e' | cut -d = -f 1 | xargs -n1 pip install -U
- That's it
Installing packages through pip:
- pip3 install *
- Instead of the the * put the name of the package
Alternative method:
- pip install *
- Instead of the the * put the name of the package
Alternative way to use PYTHON (This one is not as effective as a previous one, but if u plan to do some simple tasks - this one can work out):
- Register\Just use - repl.it
Structure of my code ( and themes ) looks like this :
I write code on the same theme and i make 1 empty line between different sub-themes
But when i start to write code on the other theme i make 2 empty lines , so it looks like this (open the file README to fully see the picture itself)
#Theme 1
code
code
#Theme 2 code
code