What happens when you solve programming problems?
rough plan, trial and error, lot’s of wrong, understand individual pieces, incremental steps, use the thing as it’s own model, virtual play and replay, goal oriented … beauty isn’t a concern, backwards planning – wishful thinking, it is a game, there is more than one solution
%pylab inline … make this a habit!
be aware, the order of cell executions matters,
open conda environment
open jupyter (it is where it was started)
open a notebook
notebooks are active
notebooks need to be closed to be closed
jupyter needs to be closed to be not active anymore
a new error is just a new error in a sequence of more errors … don’t be discouraged
seek to understand the error … the message is cryptic at best
read from the bottom!
variables need to be defined … python has no clue about content or type beforehand
so far, we defined variables by assigning a value to them (= is an assign operation, not the mathematical “equal” expression)
Defining a string ‘,”,”’, str(somevariable)
Escape Character: \ the usefull ones are \n \t and \\
format is a useful command
Boolean is True or False
AND OR conjugate statements -> order might not be clear: A AND B OR C means what? (A AND B) OR C or A AND (B OR C)?
NOT “nots” the truth
== this is a comparator operator, is the left side EQUAL to the right?
= is an assignment operator, let the left side be the right
== < > <= >= !=
else: expands the function of the “IF” statement, “ELSE” part becomes executed if the IF part isn’t True
Pretty little insight – life lesson – title in progress
Function before beauty – for now
The easier it is on your brain, the easier it is to implement for you, for now
There is always another way to do it, don’t judge appreciate 🙂
just starting sometimes helps