Online Absolute Beginner Python Tutorials
Every Sunday 1pm (UK time/ BST)
by Cheuk Ting Ho
Get this slide deck: bit.ly/PythonSetup
First of all, download and install Python
Sometime, you may have Python already in your computer and you don't even know it.
I think it's a good idea to check if you have python insalled and know where it will sit after you have installed it.
p.s. we are not using Python 2!!!
In unix (mac os X included) terminal you can do:
which python
For Windows Users, chances are one of these (e.g. Python3.6):
where python
Or in a CMD:
cd \
ls *ython* -Recurse -Directory
If you can't find it / which python shows nothing...
Even if you have Python installed and you don't know how, you should also watch this episode.
The "Official" way of installing Python
You may have found it before because you want to learn Python
Or you may have heard about Anaconda
Installing a Python ready for coding is not as straght forward as you think...
If you are new to using Mac OS for coding, the first thing you need is XCode
In your terminal:
xcode-select --install
Next, install homebrew - a package manager in OS X
In your terminal:
ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"
Then you can use homebrew to install Python3 (remember the 3)
In your terminal:
brew install python3
Uaually, Linux already comes with Python
to check which version of Python you are using:
python3 --version
If you don't have Python 3.6 or above (which is recommended)
sudo apt-get update
sudo apt-get install python3.6
Complete guide:
https://docs.python-guide.org/starting/install3/linux/
For windows, the official website is the best choice
(Thanks to Steve Dower @zooba)
For Windows 10, you can also set up via powershell: https://www.digitalocean.com/community/tutorials/how-to-install-python-3-and-set-up-a-local-programming-environment-on-windows-10
A heavy distribution of Python and R (include 7,500+ packages) designed for scientific computing
If you want to do data analysis and machine learning, it may be a good choice
Download here: https://www.anaconda.com/distribution/
Go to terminal/ CMD / Anaconda terminal
python3
>>> 1+1
2
>>> print("hello")
hello
It's useful to have a GitHub account and have git installed.
https://git-scm.com/book/en/v2/Getting-Started-Installing-Git
Get a coding IDE, I use Atom, other propular choice are Sublime Text, VS Code, PyCharm.
https://realpython.com/python-ides-code-editors-guide/
Sunday 1pm (UK time/ BST)
There are also Mid Meet Py every Wednesday 1pm