Lecture 3: Sequences, Lists and Loops

The third lecture starts off with a look at sequences. We’ll find out what sequences are, how you can access elements in a sto, and how you can create sequences of your own. Next, we’ll take a look at the for loop and examine how you can harness its powers to repeat simple – and complex – tasks with ease. We’ll learn about lists, too, and see how they can be used to store information so that it is easily accessible and modifiable. If we have time, we’ll also take a look at how you can add more functionality into your programs easily with Python Modules.

Lecture 2: User input, conditional statements and loops

The second lecture starts with a quick recap of what we learned last week. After that, we’ll start looking at how to get input from the users into your program, and what to do with that input. After that we’ll move on to conditional statements and learn how we can direct our programs based on, for example, different input that we’ve received from the users. We’ll learn how we can combine different sets of conditions to fine-tune the program flow, and learn to hate missing colons and broken indentation while we do so. After conditional statements, we’ll move on to loop structures, starting with the while loop. While looking a loops, we’ll also have a quick look at what Python modules are and what we can do with them. Once we know everything there is to know about while loops, we’ll learn the horrible truth about strings (they’re actually sequences!). If there’s time, we’ll start working with the for loop, the most magical of all the loops in the world.

Surviving DOS

Here’s the basic set of commands you’ll need to survive the Windows Command Prompt.

Moving between directories

The cd (change directory) command is used to move from one directory to another:

cd <Target directory>

Move to a directory called Python34:

cd Python34

Move to the root directory of the current drive (Win):

cd \

Move to the root directory of this drive (Linux/OSX):

cd / Move up one directory.

For example, from c:\users\mika to c:\users:

cd ..

Move from the current directory – for example c:\Python34 – to the directory c:\users\mika:

cd \users\mika

To move from one drive to another, simply type the drive letter followed by a colon:

x:

(more…)

Lecture 1: Getting Started

Lecture one starts from the very basics. First, we’ll take a look at why this course is on the curriculum (there’s a solid reason!) and have a brief look at what you’ll learn – and what you probably won’t learn – during the course. We’ll also explore what you can expect from the course, if you already have some programming experience. (more…)

TECHS6: Lecture 7

During the final lecture, we’ll look into reusing material with content references. We’ll also explore ways of making our DITA content more flexible with key references.

Download Files:

Lecture Example Content

TECHS6: Lecture 6

Lecture 6 is dedicated to publications and how they are created using DITA Map modules and DITA Bookmap modules. We’ll look at different ways of structuring content into our publications, and take our first look at conditional text and content reuse.

Download Files:

Lecture

TECHS6: Lecture 5

During this lecture, we’ll look at task and reference modules and their basic structure. We’ll also look at how links work in DITA and how we can link to different types of content from our modules.

Download Files:

Lecture