Part 6: Getting help

There are a number of ways to get help or figure out how to do something new:

Generally:

Being a proficient coder is not about knowing the details of every package, but rather knowing how to search for this information effectively…

Extras

Python Style Guide

The Python Enhancement Proposal 8 (PEP 8) outlines coding conventions when it comes to writing Python code. While there are a lot of different ways that you could technically write valid Python code, enforcing consistency in coding style makes reading other people’s code much easier. Plus it’s one less thing for you to have to decide on as a programmer!

It is worth having a read through the PEP 8 document here and absorbing what you can. While some of the guidelines may not make sense at this stage in your Python journey, others should be easy to implement immediately. For example, always use 4 spaces for indentation (A tab is bad. Two spaces is worse).

Easter eggs…

Time for some Python Zen:

import this

Python doesn’t have braces to designate code blocks (instead using indentation). But will this always be the case?

from __future__ import braces

And just run this one…

import antigravity

← Previous Lesson: Data Manipulation and Plotting