This is the first part of the University of Helsinki’s free massive open online course (MOOC) on Python Programming. The course is split up into two individual courses: Introduction to Programming and Advanced Course in Programming. Each course consists of seven parts, each with its own exercise set.
- Getting started
- Programming exercise: Emoticon
- Programming exercise: Fix the code: Seven Brothers
- Programming exercise: Row, Row, Row Your Boat
- Programming exercise: Minutes in a year
- Programming exercise: Print some code
- Information from the user
- Programming exercise: Name twice
- Programming exercise: Name and exclamation marks
- Programming exercise: Name and address
- Programming exercise: Fix the code: Utterances
- Programming exercise: Story
- More about variables
- Quiz: Background information
- Programming exercise: Extra space
- Programming exercise: Arithmetics
- Programming exercise: Fix the code: Print a single line
- Arithmetic operations
- Programming exercise: Times five
- Programming exercise: Name and age
- Programming exercise: Seconds in a day
- Programming exercise: Fix the code: Product
- Programming exercise: Sum and product
- Programming exercise: Sum and mean
- Programming exercise: Food expenditure
- Programming exercise: Students in groups
- Conditional statements
- Programming exercise: Orwell
- Programming exercise: Absolute value
- Programming exercise: Soup or no soup
- Programming exercise: Order of magnitude
- Programming exercise: Calculator
- Programming exercise: Temperatures
- Programming exercise: Daily wages
- Programming exercise: Loyalty bonus
- Programming exercise: What to wear tomorrow
- Programming exercise: Solving a quadratic equation
- Quiz: Feedback, part 1
- Programming terminology
- Programming exercise: Fix the syntax
- Programming exercise: Number of characters
- Programming exercise: Typecasting
- More conditionals
- Programming exercise: Age of maturity
- Programming exercise: Greater than or equal to
- Programming exercise: The elder
- Programming exercise: Alphabetically last
- Combining conditions
- Programming exercise: Age check
- Programming exercise: Nephews
- Programming exercise: Grades and points
- Programming exercise: FizzBuzz
- Programming exercise: Leap year
- Programming exercise: Alphabetically in the middle
- Programming exercise: Gift tax calculator
- Simple loops
- Programming exercise: Shall we continue?
- Programming exercise: Input validation
- Programming exercise: Fix the code: Countdown
- Programming exercise: Repeat password
- Programming exercise: PIN and number of attempts
- Programming exercise: The next leap year
- Programming exercise: Story
- Programming exercise: Working with numbers
- Quiz: Feedback, part 2
- Loops with conditions
- Programming exercise: Print numbers
- Programming exercise: Fix the code: Countdown
- Programming exercise: Numbers
- Programming exercise: Powers of two
- Programming exercise: Powers of base n
- Programming exercise: The sum of consecutive numbers, version 1
- Programming exercise: The sum of consecutive numbers, version 2
- Working with strings
- Programming exercise: String multiplied
- Programming exercise: The longer string
- Programming exercise: End to beginning
- Programming exercise: Second and second to last characters
- Programming exercise: A line of hashes
- Programming exercise: A rectangle of hashes
- Programming exercise: Underlining
- Programming exercise: Right-aligned
- Programming exercise: A framed word
- Programming exercise: Substrings, part 1
- Programming exercise: Substrings, part 2
- Programming exercise: Does it contain vowels
- Programming exercise: Find the first substring
- Programming exercise: Find all the substrings
- Programming exercise: The second occurrence
- More loops
- Programming exercise: Multiplication
- Programming exercise: First letters of words
- Programming exercise: Factorial
- Programming exercise: Flip the pairs
- Programming exercise: Taking turns
- Defining functions
- Programming exercise: Seven Brothers
- Programming exercise: The first character
- Programming exercise: Mean
- Programming exercise: Print many times
- Programming exercise: A square of hashes
- Programming exercise: Chessboard
- Programming exercise: A word squared
- Quiz: Feedback, part 3
- The Visual Studio Code editor, Python interpreter and built-in debugging tool
- Programming exercise: Hello Visual Studio Code
- More functions
- Programming exercise: Line
- Programming exercise: A box of hashes
- Programming exercise: A square of hashes
- Programming exercise: A square
- Programming exercise: A triangle
- Programming exercise: A shape
- Programming exercise: A spruce
- Programming exercise: The greatest number
- Programming exercise: Same characters
- Programming exercise: First, second and last words
- Lists
- Programming exercise: Change the value of an item
- Programming exercise: Add items to a list
- Programming exercise: Addition and removal
- Programming exercise: Same word twice
- Programming exercise: List twice
- Programming exercise: The length of a list
- Programming exercise: Arithmetic mean
- Programming exercise: The range of a list
- Definite iteration
- Programming exercise: Star-studded
- Programming exercise: From negative to positive
- Programming exercise: List of stars
- Programming exercise: Anagrams
- Programming exercise: Palindromes
- Programming exercise: The sum of positive numbers
- Programming exercise: Even numbers
- Programming exercise: The sum of lists
- Programming exercise: Distinct numbers
- Programming exercise: The length of the longest in the list
- Programming exercise: The shortest in the list
- Programming exercise: All the longest in the list
- Print statement formatting
- Programming exercise: Integers to strings
- More strings and lists
- Programming exercise: Everything reversed
- Programming exercise: Most common character
- Programming exercise: No vowels allowed
- Programming exercise: No shouting allowed
- Programming exercise: Neighbours in a list
- Programming exercise: Grade statistics
- Quiz: Feedback, part 4
- More lists
- Programming exercise: The longest string
- Programming exercise: Number of matching elements
- Programming exercise: Go
- Programming exercise: Sudoku: check row
- Programming exercise: Sudoku: check column
- Programming exercise: Sudoku: check block
- Programming exercise: Sudoku: check grid
- References
- Programming exercise: Items multiplied by two
- Programming exercise: Remove the smallest
- Programming exercise: Sudoku: print out the grid and add a number
- Programming exercise: Sudoku: add number to a copy of the grid
- Programming exercise: Tic-Tac-Toe
- Programming exercise: Transpose a matrix
- Dictionary
- Programming exercise: Times ten
- Programming exercise: Factorials
- Programming exercise: Histogram
- Programming exercise: Phone book, version 1
- Programming exercise: Phone book, version 2
- Programming exercise: Invert a dictionary
- Programming exercise: Numbers spelled out
- Programming exercise: Movie database
- Programming exercise: Find movies
- Tuple
- Programming exercise: Create a tuple
- Programming exercise: The oldest person
- Programming exercise: Older people
- Programming exercise: Student database
- Programming exercise: A square of letters
- Quiz: Feedback, Part 5
- Reading files
- Programming exercise: Largest number
- Programming exercise: Fruit market
- Programming exercise: Matrix
- Programming exercise: Course grading, part 1
- Programming exercise: Course grading, part 2
- Programming exercise: Course grading, part 3
- Programming exercise: Spell checker
- Programming exercise: Recipe search
- Programming exercise: City bikes
- Writing files
- Programming exercise: Inscription
- Programming exercise: Diary
- Programming exercise: Filtering the contents of a file
- Programming exercise: Store personal data
- Programming exercise: Course grading, part 4
- Programming exercise: Word search
- Programming exercise: Dictionary stored in a file
- Handling errors
- Programming exercise: Reading input
- Programming exercise: Parameter validation
- Programming exercise: Incorrect lottery numbers
- Local and global variables
- Quiz: Feedback, Part 6
- Modules
- Programming exercise: Hypotenuse
- Programming exercise: Special characters
- Programming exercise: Fractions
- Randomness
- Programming exercise: Lottery numbers
- Programming exercise: Password generator, part 1
- Programming exercise: Password generator, part 2
- Programming exercise: Dice roller
- Programming exercise: Random words
- Times and dates
- Programming exercise: How old
- Programming exercise: Valid PIC?
- Programming exercise: Screen time
- Data processing
- Programming exercise: Handling JSON files
- Programming exercise: Course statistics
- Programming exercise: Who cheated
- Programming exercise: Who cheated, version 2
- Programming exercise: Spell checker, version 2
- Creating your own modules
- Programming exercise: String helper
- Quiz: Loppukysely, osa 7
- More Python features
- Programming exercise: Your own programming language
- Quiz: Course Feedback