Tag:

LPTHW - Exercise 5: More Variables Printing

LPTHW - Exercise 5 Exercise 5 takes us back over variables and printing. It also introduces us to 'format strings'. One key thing to understand about Python is that there seems to have been a bit of a 'mess' around handling strings. This course exploits the behaviour available in Python 3.6 and above. And I can see why - it's the closest to the way Python 2 handled strings.

Read more...

LPTHW - Exercise 4: Variables Names

LPTHW - Exercise 4 First introduction to variables here. Variable has a very dry and precise definition in Computer Science: In computer programming, a variable or scalar is a storage location paired with an associated symbolic name (an identifier), which contains some known or unknown quantity of information referred to as a value. Don't let that put you off though. A variable can be thought of simply as a thing with a name that stores some information.

Read more...