Ensimmäisellä luennolla tutustutaan muotoilemattomaan tekstiin, muotoiltuun tekstiin sekä rakenteiseen tekstiin.
Category: Lectures
The Lectures category contains each and every TECHS5 and TECHS6 lecture.
During the final lecture, we’ll look at handling XML files with Python and how Python can be used to copy and move files.
During lecture 6, we’ll take a look at how we can create our own functions in Python. We’ll learn how we can use functions and their return values to clean the structure of our scripts. We will also have a look at Python’s ElementTree module and see how we can use it to read XML files.
This time around, we’ll look at how to open, read and examine files. Then, we’ll look at how we can build our own functions and use them to clean up the structure of our programs.
The third lecture starts with a quick recap of what we learned last week. Then, we will take a look at the different data structures – lists, tuples and dictionaries – we have at our disposal, and start figuring out how and why we should use them. Once we’ve mastered them all, we’ll move on to loops, starting with the while loop.
If time permits, which it probably won’t, we’ll also have a look at for loops.
The second lecture starts with a quick recap of what we learned last week. After that, we’ll look into different functions that we can use to work with strings and other sequences. Then, we’ll learn about Boolean data types and conditional statements and see how they can be used to control the flow of our programs. We’ll also have a look at the various logical operators we can use in conditional statements. Finally, if time permits, we’ll look at the different data structures – lists, tuples and dictionaries – we have at our disposal.

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 all the fun things you’ll learn about during the course:
- Variables
- Playing with numbers
- Working with text
- Conditional statements
- Data structures
- Loops
- Functions
- File handling
After the introduction, we’ll jump straight into Python and get to know both the Python Shell and IDLE. We’ll then get acquainted with variables and start using them with numbers and do a (tiny) bit of math. Next, we’ll move onto text, or strings, and figure out how to print stuff, manipulate text and ask for user input in Python.
Download files:
During the final lecture, we’ll continue looking at functions. We’ll find out how we can return values from our own functions and look at cases where return values come in handy. If time permits, we’ll have a quick look at how Python lets us anticipate errors and deal with them in ways that won’t break our programs.
This week, we’ll take a look at how you can use Python to work with zip files. We’ll also look at how you can define your own functions in Python and use them to clean up the structure of your programs. (more…)