Recommendations for learning Python as a complete n00b

Associate
Joined
20 Sep 2003
Posts
2,361
Location
Scotland
I want to try my hand at coding after many years of being sat a computer and not knowing where to begin to try and understand code. I have given it a bash in the past but given up very quickly. I have a basic understanding of HTML and CSS and can get my way around getting a website together but that’s as far as it goes. I feel python is a good route into coding?

I have some spare time at work and thought it would be good to utilise the time starting to learn coding practises. My machine is pretty locked down so was looking for recommendations for free online courses that can be done within the browser, so writing the code and executing it within the browser.

Does anyone have any recommendations?

On a side note, I can VNC to my home windows PC and have SSH and VNC access to my Raspberry Pi running Kali. Maybe those could be used?



Cheers
 
Associate
Joined
10 Aug 2010
Posts
1,544
Location
Midlands
Have a look at CS50p. I'm currently (slowly) going through it as and when I feel like it just for fun/knowledge.

I previously completed the original CS50x which has a bit of python in it, but the 'p' flavour of the course is purely focussed on python.
 
Associate
OP
Joined
20 Sep 2003
Posts
2,361
Location
Scotland
Just picking this topic back up again after watching some YouTube videos. Does anyone have experience or can recommend freecodecamp?..... is this a recognised course within the industry and is it tailored for complete beginners?
 
Associate
Joined
18 Feb 2010
Posts
2,082
Location
Glasgow, UK
I used udacity a few years ago to get to grips with python, it seemed to work for me (sadly through not having any frequent ongoing use I've forgotten a lot of it now :D). The harvard one has been recommended as a free resource for years and years, it's got to be decent, I'm thinking I'll pick up coding again soon and this seems like a good one for a refresher.
 
Caporegime
Joined
29 Jan 2008
Posts
58,912
My machine is pretty locked down so was looking for recommendations for free online courses that can be done within the browser, so writing the code and executing it within the browser.

Does anyone have any recommendations?

A quick and easy way of writing some Python code would be to use Google's Colab - they've basically adapted Jupyter notebooks:

All you need is a Google account:

You can connect to your Google Drive to read/save files etc.. so no need for anything on your work computer other than just using your browser. It's free too if you just need the CPU, if you do get into Data Science/Machine Learning and need access to GPUs then you can subscribe for like £10 a month or just buy credits (in fact I'm not sure there is much benefit in subscribing vs just using credits).

On a side note, I can VNC to my home windows PC and have SSH and VNC access to my Raspberry Pi running Kali. Maybe those could be used?

Take a look at Anaconda too - obvs for courses where you do need to write a complete program and save a .py file etc.. you'll want a local installation, anaconda makes this easy as you can very quickly set up several Python environments if you break one then it doesn't matter and you can delete it, use another etc.. and indeed just have different environments for when you need different versions of particular packages.

There's also a lightweight miniconda installation that might be usefor for your Raspberry Pi.

While you can obviously write code in a text editor you'll probably want to look at some IDEs, Anaconda lets you install both Jupyter notebooks (which Colab is based on) and an IDE called Spyder very easily - the latter is similar to the MATLAB IDE and you'll want to use something like this or a text editor if creating .py files to run locally (Jupyter saves a different notebook file type - you can also save a Colab notebook to open in Jupyter locally).

Colab/Jupyter notebooks are handy for running little snippets of code, you can actively experiment with stuff quite easily. You can do a similar thing in Spyder by using code cells separated by #%% which is similar to MATLAB and lets you just run a snippet + there is a variable explorer. This can be useful when learning as you can easily run things in little steps and then see what values the variables are taking etc.

Then you might want to look at PyCharm (which also works well with Anaconda) and is perhaps a bit more of a fully-fledged professional IDE.
 
Last edited:
Back
Top Bottom