Skip to content

All exercises for Introduction to Programming course from University of Helsinki, Finland.

Notifications You must be signed in to change notification settings

Charles2029/Python_Programming_MOOC_2022_I

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Programming 1 MOOC University of Helsinki

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.


Course Contents

Part 1:

  1. Getting started
    1. Programming exercise: Emoticon
    2. Programming exercise: Fix the code: Seven Brothers
    3. Programming exercise: Row, Row, Row Your Boat
    4. Programming exercise: Minutes in a year
    5. Programming exercise: Print some code
  2. Information from the user
    1. Programming exercise: Name twice
    2. Programming exercise: Name and exclamation marks
    3. Programming exercise: Name and address
    4. Programming exercise: Fix the code: Utterances
    5. Programming exercise: Story
  3. More about variables
    1. Quiz: Background information
    2. Programming exercise: Extra space
    3. Programming exercise: Arithmetics
    4. Programming exercise: Fix the code: Print a single line
  4. Arithmetic operations
    1. Programming exercise: Times five
    2. Programming exercise: Name and age
    3. Programming exercise: Seconds in a day
    4. Programming exercise: Fix the code: Product
    5. Programming exercise: Sum and product
    6. Programming exercise: Sum and mean
    7. Programming exercise: Food expenditure
    8. Programming exercise: Students in groups
  5. Conditional statements
    1. Programming exercise: Orwell
    2. Programming exercise: Absolute value
    3. Programming exercise: Soup or no soup
    4. Programming exercise: Order of magnitude
    5. Programming exercise: Calculator
    6. Programming exercise: Temperatures
    7. Programming exercise: Daily wages
    8. Programming exercise: Loyalty bonus
    9. Programming exercise: What to wear tomorrow
    10. Programming exercise: Solving a quadratic equation
    11. Quiz: Feedback, part 1

Part 2:

  1. Programming terminology
    1. Programming exercise: Fix the syntax
    2. Programming exercise: Number of characters
    3. Programming exercise: Typecasting
  2. More conditionals
    1. Programming exercise: Age of maturity
    2. Programming exercise: Greater than or equal to
    3. Programming exercise: The elder
    4. Programming exercise: Alphabetically last
  3. Combining conditions
    1. Programming exercise: Age check
    2. Programming exercise: Nephews
    3. Programming exercise: Grades and points
    4. Programming exercise: FizzBuzz
    5. Programming exercise: Leap year
    6. Programming exercise: Alphabetically in the middle
    7. Programming exercise: Gift tax calculator
  4. Simple loops
    1. Programming exercise: Shall we continue?
    2. Programming exercise: Input validation
    3. Programming exercise: Fix the code: Countdown
    4. Programming exercise: Repeat password
    5. Programming exercise: PIN and number of attempts
    6. Programming exercise: The next leap year
    7. Programming exercise: Story
    8. Programming exercise: Working with numbers
    9. Quiz: Feedback, part 2

Part 3:

  1. Loops with conditions
    1. Programming exercise: Print numbers
    2. Programming exercise: Fix the code: Countdown
    3. Programming exercise: Numbers
    4. Programming exercise: Powers of two
    5. Programming exercise: Powers of base n
    6. Programming exercise: The sum of consecutive numbers, version 1
    7. Programming exercise: The sum of consecutive numbers, version 2
  2. Working with strings
    1. Programming exercise: String multiplied
    2. Programming exercise: The longer string
    3. Programming exercise: End to beginning
    4. Programming exercise: Second and second to last characters
    5. Programming exercise: A line of hashes
    6. Programming exercise: A rectangle of hashes
    7. Programming exercise: Underlining
    8. Programming exercise: Right-aligned
    9. Programming exercise: A framed word
    10. Programming exercise: Substrings, part 1
    11. Programming exercise: Substrings, part 2
    12. Programming exercise: Does it contain vowels
    13. Programming exercise: Find the first substring
    14. Programming exercise: Find all the substrings
    15. Programming exercise: The second occurrence
  3. More loops
    1. Programming exercise: Multiplication
    2. Programming exercise: First letters of words
    3. Programming exercise: Factorial
    4. Programming exercise: Flip the pairs
    5. Programming exercise: Taking turns
  4. Defining functions
    1. Programming exercise: Seven Brothers
    2. Programming exercise: The first character
    3. Programming exercise: Mean
    4. Programming exercise: Print many times
    5. Programming exercise: A square of hashes
    6. Programming exercise: Chessboard
    7. Programming exercise: A word squared
    8. Quiz: Feedback, part 3

Part 4:

  1. The Visual Studio Code editor, Python interpreter and built-in debugging tool
    1. Programming exercise: Hello Visual Studio Code
  2. More functions
    1. Programming exercise: Line
    2. Programming exercise: A box of hashes
    3. Programming exercise: A square of hashes
    4. Programming exercise: A square
    5. Programming exercise: A triangle
    6. Programming exercise: A shape
    7. Programming exercise: A spruce
    8. Programming exercise: The greatest number
    9. Programming exercise: Same characters
    10. Programming exercise: First, second and last words
  3. Lists
    1. Programming exercise: Change the value of an item
    2. Programming exercise: Add items to a list
    3. Programming exercise: Addition and removal
    4. Programming exercise: Same word twice
    5. Programming exercise: List twice
    6. Programming exercise: The length of a list
    7. Programming exercise: Arithmetic mean
    8. Programming exercise: The range of a list
  4. Definite iteration
    1. Programming exercise: Star-studded
    2. Programming exercise: From negative to positive
    3. Programming exercise: List of stars
    4. Programming exercise: Anagrams
    5. Programming exercise: Palindromes
    6. Programming exercise: The sum of positive numbers
    7. Programming exercise: Even numbers
    8. Programming exercise: The sum of lists
    9. Programming exercise: Distinct numbers
    10. Programming exercise: The length of the longest in the list
    11. Programming exercise: The shortest in the list
    12. Programming exercise: All the longest in the list
  5. Print statement formatting
    1. Programming exercise: Integers to strings
  6. More strings and lists
    1. Programming exercise: Everything reversed
    2. Programming exercise: Most common character
    3. Programming exercise: No vowels allowed
    4. Programming exercise: No shouting allowed
    5. Programming exercise: Neighbours in a list
    6. Programming exercise: Grade statistics
    7. Quiz: Feedback, part 4

Part 5:

  1. More lists
    1. Programming exercise: The longest string
    2. Programming exercise: Number of matching elements
    3. Programming exercise: Go
    4. Programming exercise: Sudoku: check row
    5. Programming exercise: Sudoku: check column
    6. Programming exercise: Sudoku: check block
    7. Programming exercise: Sudoku: check grid
  2. References
    1. Programming exercise: Items multiplied by two
    2. Programming exercise: Remove the smallest
    3. Programming exercise: Sudoku: print out the grid and add a number
    4. Programming exercise: Sudoku: add number to a copy of the grid
    5. Programming exercise: Tic-Tac-Toe
    6. Programming exercise: Transpose a matrix
  3. Dictionary
    1. Programming exercise: Times ten
    2. Programming exercise: Factorials
    3. Programming exercise: Histogram
    4. Programming exercise: Phone book, version 1
    5. Programming exercise: Phone book, version 2
    6. Programming exercise: Invert a dictionary
    7. Programming exercise: Numbers spelled out
    8. Programming exercise: Movie database
    9. Programming exercise: Find movies
  4. Tuple
    1. Programming exercise: Create a tuple
    2. Programming exercise: The oldest person
    3. Programming exercise: Older people
    4. Programming exercise: Student database
    5. Programming exercise: A square of letters
    6. Quiz: Feedback, Part 5

Part 6:

  1. Reading files
    1. Programming exercise: Largest number
    2. Programming exercise: Fruit market
    3. Programming exercise: Matrix
    4. Programming exercise: Course grading, part 1
    5. Programming exercise: Course grading, part 2
    6. Programming exercise: Course grading, part 3
    7. Programming exercise: Spell checker
    8. Programming exercise: Recipe search
    9. Programming exercise: City bikes
  2. Writing files
    1. Programming exercise: Inscription
    2. Programming exercise: Diary
    3. Programming exercise: Filtering the contents of a file
    4. Programming exercise: Store personal data
    5. Programming exercise: Course grading, part 4
    6. Programming exercise: Word search
    7. Programming exercise: Dictionary stored in a file
  3. Handling errors
    1. Programming exercise: Reading input
    2. Programming exercise: Parameter validation
    3. Programming exercise: Incorrect lottery numbers
  4. Local and global variables
    1. Quiz: Feedback, Part 6

Part 7:

  1. Modules
    1. Programming exercise: Hypotenuse
    2. Programming exercise: Special characters
    3. Programming exercise: Fractions
  2. Randomness
    1. Programming exercise: Lottery numbers
    2. Programming exercise: Password generator, part 1
    3. Programming exercise: Password generator, part 2
    4. Programming exercise: Dice roller
    5. Programming exercise: Random words
  3. Times and dates
    1. Programming exercise: How old
    2. Programming exercise: Valid PIC?
    3. Programming exercise: Screen time
  4. Data processing
    1. Programming exercise: Handling JSON files
    2. Programming exercise: Course statistics
    3. Programming exercise: Who cheated
    4. Programming exercise: Who cheated, version 2
    5. Programming exercise: Spell checker, version 2
  5. Creating your own modules
    1. Programming exercise: String helper
    2. Quiz: Loppukysely, osa 7
  6. More Python features
    1. Programming exercise: Your own programming language
    2. Quiz: Course Feedback

About

All exercises for Introduction to Programming course from University of Helsinki, Finland.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%