Repository files navigation

Python Programming MOOC 2024

All my notes and solutions from the University of Helsinki's Python Programming MOOC 2024

The exercises and examples are entirely implemented in Python 3. There are no requirements for external packages and/or libraries, except for Part 13 and 14, which requires Pygame.

Please feel free to message me for any questions or suggestions.

References

Course Website: https://programming-24.mooc.fi/

Files

|-- 0 - Master Notes.md
|-- 1 - Pygame.md
|-- 0 - Introduction to Programming Notes
||-- Data-Files
||-- Intro To Programming Exam - 04-05-2024
|||-- Exam1.md
|||-- Notes
||||-- Exercise 1.py
||||-- Exercise 2 copy.py
||||-- Exercise 2.py
||||-- Exercise 3.py
||||-- statistics copy.txt
|||`-- statistics.txt||`-- Submissions
|||-- ValueErrors.txt
|||-- exercise1.py
|||-- exercise2.py
|||-- exercise3.py
||`-- statistics.txt||-- Part 1 - Arithmetic Operations.py||-- Part 1 - Conditional Statements.py||-- Part 1 - Prints & Inputs.py||-- Part 2 - More Conditionals.py||-- Part 2 - Simple Loops.py||-- Part 3 - Debugging Example.py||-- Part 3 - Defining Functions.py||-- Part 3 - Loops with Conditions.py||-- Part 3 - More Loops.py||-- Part 3 - Strings.py||-- Part 4 - Definite iteration.py||-- Part 4 - Developing a larger programming project.py||-- Part 4 - Grade Statistics - 2.py||-- Part 4 - Grade Statistics.py||-- Part 4 - Lists.py||-- Part 4 - More Functions.py||-- Part 4 - More strings and lists.py||-- Part 4 - Print statement formatting.py||-- Part 5 - Dictionary.py||-- Part 5 - More Lists and Matrix.py||-- Part 5 - References.py||-- Part 5 - Student database.py||-- Part 5 - Sudoku.py||-- Part 5 - Test.ipynb||-- Part 5 - Tuple.py||-- Part 6 - Handling errors.py||-- Part 6 - Reading Files.py||-- Part 6 - Writing files.py||-- Part 7 - Creating your own modules.py||-- Part 7 - Data processing.py||-- Part 7 - Modules.py||-- Part 7 - More Python features.py||-- Part 7 - Randomness.py||-- Part 7 - Times and dates.py|`-- string_helper.py
|-- 1 - Advanced Course in Programming Notes
||-- Advanced Course in Programming Exam - 15-06-2024
|||-- Exam.md
|||-- Exercise 1.py
|||-- Exercise 2.py
|||-- Exercise 3-1.py
|||-- Exercise 3.py
||`-- recipes.txt||-- Data-Files||-- Part 10 - Access modifiers.py||-- Part 10 - Class hierarchies.py||-- Part 10 - Developing a larger application.py||-- Part 10 - Object oriented programming techniques.py||-- Part 11 - List comprehensions.py||-- Part 11 - More comprehensions.py||-- Part 11 - More recursion examples.py||-- Part 11 - Recursion.py||-- Part 12 - Functional programming.py||-- Part 12 - Functions as arguments.py||-- Part 12 - Generators.py||-- Part 12 - Lambda Function Exercises.ipynb||-- Part 12 - Regular expressions.py||-- Part 13 - Animation.py||-- Part 13 - Events.py||-- Part 13 - More pygame techniques.py||-- Part 13 - Pygame.py||-- Part 14 - Finishing the game.py||-- Part 14 - Game project.py||-- Part 14 - Robot and boxes.py||-- Part 8 - Classes and objects.py||-- Part 8 - Defining classes.py||-- Part 8 - Defining methods.py||-- Part 8 - More examples of classes.py||-- Part 8 - Objects and methods.py||-- Part 9 - Class attributes.py||-- Part 9 - Encapsulation.py||-- Part 9 - More examples with classes.py||-- Part 9 - Objects and references.py||-- Part 9 - Objects as attributes.py|`-- Part 9 - Scope of methods.py
|-- Applications
||-- CoinPort
|||-- coin.png
|||-- door.png
|||-- game.py
|||-- monster.png
||`-- robot.png||-- CourseRecords Application||`-- main.py
||-- Hockey Statistics Application
|||-- all.json
|||-- hockey_statistics-v2.py
|||-- hockey_statistics.py
||`-- partial.json||-- Maze Generator|||-- Maze generation copy.py|||-- Maze generation.py||`-- maze.txt
||-- OrderBook Application
|||-- input.txt
|||-- input2.txt
|||-- input3.txt
|||-- main.py
||`-- test.py||-- Pacman||-- Part 9 - Objects as attributes - Example|||-- MainFunction.py|||-- completedcourse.py|||-- course.py||`-- student.py
||-- PhoneBook Application
|||-- main.py
|||-- main_expansion_v2.py
||`-- phonebook.txt||-- Rich The Robot|||-- coin.png|||-- door.png|||-- game.py|||-- monster.png||`-- robot.png
||-- Your-own-game
|||-- coin.png
|||-- door.png
|||-- game.py
|||-- monster.png
||`-- robot.png|`-- sokoban
||-- README.md
||-- sokoban-english.py
|-- Data-Files
|-- Images
|-- README.md
|-- Reference Notes
||-- Algorithms.py
||-- Angles in Pygame.py
||-- Comprehensions.py
||-- Primes
|||-- 10m_prime_sive.txt
|||-- 1m_prime_sive_v0.txt
|||-- Prime_Sieve_1.py
|||-- Prime_Sieve_2.py
|||-- Prime_Sieve_3.py
|||-- Prime_Sieve_4.py
|||-- Prime_Sieve_4a.py
|||-- Prime_Sieve_5py
|||-- Trial_Div_1.py
|||-- Trial_Div_2.py
||`-- solution_3|||-- Dockerfile|||-- PrimePY.py|||-- README.md||`-- tests
|||-- __init__.py
||`-- test_sieve.py|`-- f-string.py
|-- Slides
||-- Slides 1.pdf
||-- Slides 10.pdf
||-- Slides 11.pdf
||-- Slides 12.pdf
||-- Slides 2.pdf
||-- Slides 3.pdf
||-- Slides 4.pdf
||-- Slides 5.pdf
||-- Slides 6.pdf
||-- Slides 7.pdf
|`-- Slides 8.pdf|-- course-submission-files||-- hy-adv-course-in-prog-exam-15062024|||-- Exam15062024-Exercise1|||-- Exam15062024-Exercise2||`-- Exam15062024-Exercise3
||-- hy-intro-to-programming-exam-04052024
|||-- Exam04052024-Exercise1
|||-- Exam04052024-Exercise2
||`-- Exam04052024-Exercise3|`-- mooc-programming-24
||-- part01-01_emoticon
||-- part01-02_seven_brothers
||-- part01-03_row_your_boat
||-- part01-04_minutes_in_a_year
||-- part01-05_print_code
||-- part01-06_name_twice
||-- part01-07_name_and_exclamation_marks
||-- part01-08_name_and_address
||-- part01-09_utterances
||-- part01-10_story
||-- part01-10b_extra_space
||-- part01-11_arithmetics
||-- part01-12_print_a_single_line
||-- part01-13_times_five
||-- part01-14_name_and_age
||-- part01-15_seconds_in_a_day
||-- part01-16_product
||-- part01-17_sum_and_product
||-- part01-18_sum_and_mean
||-- part01-19_food_expenditure
||-- part01-20_students_in_groups
||-- part01-21_orwell
||-- part01-22_absolute_value
||-- part01-23_soup_or_no_soup
||-- part01-24_order_of_magnitude
||-- part01-25_calculator
||-- part01-26_temperatures
||-- part01-27_daily_wages
||-- part01-28_loyalty_bonus
||-- part01-29_what_to_wear_tomorrow
||-- part01-30_quadratic_formula
||-- part02-01_fix_syntax
||-- part02-02_number_of_characters
||-- part02-03_typecasting
||-- part02-04_age_of_maturity
||-- part02-05_greater_or_equal
||-- part02-06_elder
||-- part02-07_alphabetically_last
||-- part02-08_age_check
||-- part02-09_nephews
||-- part02-10_grades_and_points
||-- part02-11_fizzbuzz
||-- part02-12_leap_year
||-- part02-13_alphabetically_in_the_middle
||-- part02-14_gift_tax_calculator
||-- part02-15_shall_we_continue
||-- part02-16_input_validation
||-- part02-17_countdown
||-- part02-18_repeat_password
||-- part02-19_pin_and_number_of_attempts
||-- part02-20_next_leap_year
||-- part02-21_story
||-- part02-22_working_with_numbers
||-- part03-01_print_numbers
||-- part03-02_countdown
||-- part03-03_numbers
||-- part03-04_powers_of_two
||-- part03-05_powers_of_base_n
||-- part03-06_consecutive_sum_v1
||-- part03-07_consecutive_sum_v2
||-- part03-08_string_multiplied
||-- part03-09_longer_string
||-- part03-10_end_to_beginning
||-- part03-11_second_and_second_to_last
||-- part03-12_line_of_hashes
||-- part03-13_rectangle_of_hashes
||-- part03-14_underlining
||-- part03-15_right_aligned
||-- part03-16_framed_word
||-- part03-17_substrings_part_1
||-- part03-18_substrings_part_2
||-- part03-19_does_it_contain_vowels
||-- part03-20_find_first_substring
||-- part03-21_find_all_substrings
||-- part03-22_second_occurrence
||-- part03-23_multiplication
||-- part03-24_first_letters_of_words
||-- part03-25_factorial
||-- part03-26_flip_the_pairs
||-- part03-27_taking_turns
||-- part03-28_seven_brothers
||-- part03-29_first_character
||-- part03-30_mean
||-- part03-31_print_many_times
||-- part03-32_square_of_hashes
||-- part03-33_chessboard
||-- part03-34_word_squared
||-- part04-01_hello_visual_studio_code
||-- part04-02_line
||-- part04-03_box_of_hashes
||-- part04-04_square_of_hashes
||-- part04-05_square
||-- part04-06_triangle
||-- part04-07_shape
||-- part04-08_spruce
||-- part04-09_greatest_number
||-- part04-10_same_characters
||-- part04-11_first_second_last
||-- part04-12_change_value_of_item
||-- part04-13_add_items_to_list
||-- part04-14_addition_and_removal
||-- part04-15_same_word_twice
||-- part04-16_list_twice
||-- part04-17_length_of_list
||-- part04-18_mean
||-- part04-19_range_of_list
||-- part04-20_star_studded
||-- part04-21_negative_to_positive
||-- part04-22_list_of_stars
||-- part04-23_anagrams
||-- part04-24_palindromes
||-- part04-25_sum_of_positives
||-- part04-26_even_numbers
||-- part04-27_sum_of_lists
||-- part04-28_distinct_numbers
||-- part04-29_length_of_longest
||-- part04-30_shortest_in_list
||-- part04-31_all_longest_in_list
||-- part04-32_integers_to_strings
||-- part04-33_everything_reversed
||-- part04-34_most_common_character
||-- part04-35_no_vowels_allowed
||-- part04-36_no_shouting_allowed
||-- part04-37_neighbours_in_list
||-- part04-38_grade_statistics
||-- part05-01_longest_string
||-- part05-02_number_of_elements
||-- part05-03_go
||-- part05-04_sudoku_row
||-- part05-05_sudoku_column
||-- part05-06_sudoku_block
||-- part05-07_sudoku_grid
||-- part05-08_items_multiplied_by_two
||-- part05-09_remove_smallest
||-- part05-10_sudoku_print_and_add
||-- part05-11_sudoku_add_to_copy
||-- part05-12_tic_tac_toe
||-- part05-13_transpose_matrix
||-- part05-14_times_ten
||-- part05-15_factorials
||-- part05-16_histogram
||-- part05-17_phone_book_v1
||-- part05-18_phone_book_v2
||-- part05-19_invert_dictionary
||-- part05-20_numbers_spelled_out
||-- part05-21_movie_database
||-- part05-22_find_movies
||-- part05-23_create_tuple
||-- part05-24_oldest_person
||-- part05-25_older_people
||-- part05-26_student_database
||-- part05-27_letter_square
||-- part06-01_largest_number
||-- part06-02_fruit_market
||-- part06-03_matrix
||-- part06-04_course_grading_part_1
||-- part06-05_course_grading_part_2
||-- part06-06_course_grading_part_3
||-- part06-07_spellchecker
||-- part06-08_recipe_search
||-- part06-09_city_bikes
||-- part06-10_inscription
||-- part06-11_diary
||-- part06-12_filtering_file_contents
||-- part06-13_store_personal_data
||-- part06-14_course_grading_part_4
||-- part06-15_word_search
||-- part06-16_dictionary_file
||-- part06-17_read_input
||-- part06-18_parameter_validation
||-- part06-19_incorrect_lottery_numbers
||-- part07-01_hypotenuse
||-- part07-02_special_characters
||-- part07-03_fractions
||-- part07-04_lottery_numbers
||-- part07-05_password_generator_part_1
||-- part07-06_password_generator_part_2
||-- part07-07_dice_roller
||-- part07-08_random_words
||-- part07-09_how_old
||-- part07-10_valid_pic
||-- part07-11_screen_time
||-- part07-12_json_files
||-- part07-13_course_statistics
||-- part07-14_who_cheated
||-- part07-15_who_cheated_2
||-- part07-16_spellchecker_2
||-- part07-17_string_helper
||-- part07-18_own_programming_language
||-- part08-01_smallest_average
||-- part08-02_row_sums
||-- part08-03_list_years
||-- part08-04_shopping_list
||-- part08-05_book
||-- part08-06_three_classes
||-- part08-07_pet
||-- part08-08_older_book
||-- part08-09_books_of_genre
||-- part08-10_decreasing_counter
||-- part08-11_first_and_last_name
||-- part08-12_number_stats
||-- part08-13_stopwatch
||-- part08-14_clock
||-- part08-15_lunchcard
||-- part08-16_series
||-- part09-01_fastest_car
||-- part09-02_passing_submissions
||-- part09-03_baby_centre
||-- part09-04_lunchcard_and_paymentterminal
||-- part09-05_comparing_properties
||-- part09-06_pets
||-- part09-07_box_of_presents
||-- part09-08_shortest_in_room
||-- part09-09_car
||-- part09-10_recording
||-- part09-11_weather_station
||-- part09-12_service_charge
||-- part09-13_postcodes
||-- part09-14_list_helper
||-- part09-15_item_suitcase_hold
||-- part10-01_laptop_computer
||-- part10-02_game_museum
||-- part10-03_areas
||-- part10-04_word_game
||-- part10-05_supergroup
||-- part10-06_secret_magic_potion
||-- part10-07_money
||-- part10-08_simple_date
||-- part10-09_iterable_shopping_list
||-- part10-10_phone_book_v1
||-- part10-11_phone_book_v2
||-- part10-12_course_records
||-- part11-01_square_roots
||-- part11-02_rows_of_stars
||-- part11-03_best_exam_result
||-- part11-04_lengths
||-- part11-05_remove_smaller_than
||-- part11-06_begin_with_vowel
||-- part11-07_lottery_numbers
||-- part11-08_filter_forbidden
||-- part11-09_products_in_shopping_list
||-- part11-10_cheaper_properties
||-- part11-11_lengths_of_strings
||-- part11-12_most_common_words
||-- part11-13_add_numbers_to_list
||-- part11-14_recursive_sum
||-- part11-15_balanced_brackets
||-- part11-16_greatest_node
||-- part11-17_bosses_and_subordinates
||-- part11-18_order_book
||-- part11-19_order_book_application
||-- part12-01_remaining_stock
||-- part12-02_seasons
||-- part12-03_ratings
||-- part12-04_climbing_route
||-- part12-05_climbing_areas
||-- part12-06_ballplayers
||-- part12-07_product_search
||-- part12-08_even_numbers
||-- part12-09_prime_numbers
||-- part12-10_random_words
||-- part12-11_attempted_courses
||-- part12-12_filtering_attempts
||-- part12-13_credits
||-- part12-14_regular_expressions
||-- part12-15_hockey_statistics
||-- part13-01_four_robots
||-- part13-02_robots_row
||-- part13-03_hundred_robots
||-- part13-04_random_robots
||-- part13-05_vertical_movement
||-- part13-06_round_the_perimeter
||-- part13-07_two_robots
||-- part13-08_robot_circle
||-- part13-09_bouncing_ball
||-- part13-10_robot_invasion
||-- part13-11_four_directions
||-- part13-12_four_walls
||-- part13-13_two_players
||-- part13-14_robot_and_mouse
||-- part13-15_robot_location
||-- part13-16_clock
||-- part13-17_asteroids
|`-- part14-01_own_game`-- rage-programming-24-course-data

About

Exercises & notes from University of Helsinki's Python Programming MOOC 2024

Topics

Resources

Stars

12 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Add copy buttons to all
 blocks\n(function() {\n function addCopyButtons() {\n document.querySelectorAll('pre code').forEach(function(codeBlock) {\n if (codeBlock.parentElement.hasAttribute('data-copy-added')) return;\n codeBlock.parentElement.setAttribute('data-copy-added', 'true');\n \n var btn = document.createElement('button');\n btn.textContent = 'Copy';\n btn.style.cssText = 'position:absolute;top:4px;right:4px;padding:2px 8px;font-size:11px;background:#4ecdc4;border:none;border-radius:4px;color:#1a1a2e;cursor:pointer;opacity:0.7;transition:opacity 0.2s;';\n btn.onmouseover = function() { this.style.opacity = '1'; };\n btn.onmouseout = function() { this.style.opacity = '0.7'; };\n btn.onclick = function() {\n navigator.clipboard.writeText(codeBlock.textContent).then(function() {\n btn.textContent = 'Copied!';\n setTimeout(function() { btn.textContent = 'Copy'; }, 1500);\n });\n };\n codeBlock.parentElement.style.position = 'relative';\n codeBlock.parentElement.appendChild(btn);\n });\n }\n \n addCopyButtons();\n \n // Re-run on dynamic content\n var observer = new MutationObserver(addCopyButtons);\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Add Copy Buttons to Code Blocks");
}
} catch(__e) { console.warn('[Userscript:Add Copy Buttons to Code Blocks]', __e); }
})();
(function(){
try {
var __m = "github.com";
var __re = new RegExp('^' + "github\\.com" + '
Skip to content

Repository files navigation

Python Programming MOOC 2024

All my notes and solutions from the University of Helsinki's Python Programming MOOC 2024

The exercises and examples are entirely implemented in Python 3. There are no requirements for external packages and/or libraries, except for Part 13 and 14, which requires Pygame.

Please feel free to message me for any questions or suggestions.

References

Course Website: https://programming-24.mooc.fi/

Files

|-- 0 - Master Notes.md
|-- 1 - Pygame.md
|-- 0 - Introduction to Programming Notes
||-- Data-Files
||-- Intro To Programming Exam - 04-05-2024
|||-- Exam1.md
|||-- Notes
||||-- Exercise 1.py
||||-- Exercise 2 copy.py
||||-- Exercise 2.py
||||-- Exercise 3.py
||||-- statistics copy.txt
|||`-- statistics.txt||`-- Submissions
|||-- ValueErrors.txt
|||-- exercise1.py
|||-- exercise2.py
|||-- exercise3.py
||`-- statistics.txt||-- Part 1 - Arithmetic Operations.py||-- Part 1 - Conditional Statements.py||-- Part 1 - Prints & Inputs.py||-- Part 2 - More Conditionals.py||-- Part 2 - Simple Loops.py||-- Part 3 - Debugging Example.py||-- Part 3 - Defining Functions.py||-- Part 3 - Loops with Conditions.py||-- Part 3 - More Loops.py||-- Part 3 - Strings.py||-- Part 4 - Definite iteration.py||-- Part 4 - Developing a larger programming project.py||-- Part 4 - Grade Statistics - 2.py||-- Part 4 - Grade Statistics.py||-- Part 4 - Lists.py||-- Part 4 - More Functions.py||-- Part 4 - More strings and lists.py||-- Part 4 - Print statement formatting.py||-- Part 5 - Dictionary.py||-- Part 5 - More Lists and Matrix.py||-- Part 5 - References.py||-- Part 5 - Student database.py||-- Part 5 - Sudoku.py||-- Part 5 - Test.ipynb||-- Part 5 - Tuple.py||-- Part 6 - Handling errors.py||-- Part 6 - Reading Files.py||-- Part 6 - Writing files.py||-- Part 7 - Creating your own modules.py||-- Part 7 - Data processing.py||-- Part 7 - Modules.py||-- Part 7 - More Python features.py||-- Part 7 - Randomness.py||-- Part 7 - Times and dates.py|`-- string_helper.py
|-- 1 - Advanced Course in Programming Notes
||-- Advanced Course in Programming Exam - 15-06-2024
|||-- Exam.md
|||-- Exercise 1.py
|||-- Exercise 2.py
|||-- Exercise 3-1.py
|||-- Exercise 3.py
||`-- recipes.txt||-- Data-Files||-- Part 10 - Access modifiers.py||-- Part 10 - Class hierarchies.py||-- Part 10 - Developing a larger application.py||-- Part 10 - Object oriented programming techniques.py||-- Part 11 - List comprehensions.py||-- Part 11 - More comprehensions.py||-- Part 11 - More recursion examples.py||-- Part 11 - Recursion.py||-- Part 12 - Functional programming.py||-- Part 12 - Functions as arguments.py||-- Part 12 - Generators.py||-- Part 12 - Lambda Function Exercises.ipynb||-- Part 12 - Regular expressions.py||-- Part 13 - Animation.py||-- Part 13 - Events.py||-- Part 13 - More pygame techniques.py||-- Part 13 - Pygame.py||-- Part 14 - Finishing the game.py||-- Part 14 - Game project.py||-- Part 14 - Robot and boxes.py||-- Part 8 - Classes and objects.py||-- Part 8 - Defining classes.py||-- Part 8 - Defining methods.py||-- Part 8 - More examples of classes.py||-- Part 8 - Objects and methods.py||-- Part 9 - Class attributes.py||-- Part 9 - Encapsulation.py||-- Part 9 - More examples with classes.py||-- Part 9 - Objects and references.py||-- Part 9 - Objects as attributes.py|`-- Part 9 - Scope of methods.py
|-- Applications
||-- CoinPort
|||-- coin.png
|||-- door.png
|||-- game.py
|||-- monster.png
||`-- robot.png||-- CourseRecords Application||`-- main.py
||-- Hockey Statistics Application
|||-- all.json
|||-- hockey_statistics-v2.py
|||-- hockey_statistics.py
||`-- partial.json||-- Maze Generator|||-- Maze generation copy.py|||-- Maze generation.py||`-- maze.txt
||-- OrderBook Application
|||-- input.txt
|||-- input2.txt
|||-- input3.txt
|||-- main.py
||`-- test.py||-- Pacman||-- Part 9 - Objects as attributes - Example|||-- MainFunction.py|||-- completedcourse.py|||-- course.py||`-- student.py
||-- PhoneBook Application
|||-- main.py
|||-- main_expansion_v2.py
||`-- phonebook.txt||-- Rich The Robot|||-- coin.png|||-- door.png|||-- game.py|||-- monster.png||`-- robot.png
||-- Your-own-game
|||-- coin.png
|||-- door.png
|||-- game.py
|||-- monster.png
||`-- robot.png|`-- sokoban
||-- README.md
||-- sokoban-english.py
|-- Data-Files
|-- Images
|-- README.md
|-- Reference Notes
||-- Algorithms.py
||-- Angles in Pygame.py
||-- Comprehensions.py
||-- Primes
|||-- 10m_prime_sive.txt
|||-- 1m_prime_sive_v0.txt
|||-- Prime_Sieve_1.py
|||-- Prime_Sieve_2.py
|||-- Prime_Sieve_3.py
|||-- Prime_Sieve_4.py
|||-- Prime_Sieve_4a.py
|||-- Prime_Sieve_5py
|||-- Trial_Div_1.py
|||-- Trial_Div_2.py
||`-- solution_3|||-- Dockerfile|||-- PrimePY.py|||-- README.md||`-- tests
|||-- __init__.py
||`-- test_sieve.py|`-- f-string.py
|-- Slides
||-- Slides 1.pdf
||-- Slides 10.pdf
||-- Slides 11.pdf
||-- Slides 12.pdf
||-- Slides 2.pdf
||-- Slides 3.pdf
||-- Slides 4.pdf
||-- Slides 5.pdf
||-- Slides 6.pdf
||-- Slides 7.pdf
|`-- Slides 8.pdf|-- course-submission-files||-- hy-adv-course-in-prog-exam-15062024|||-- Exam15062024-Exercise1|||-- Exam15062024-Exercise2||`-- Exam15062024-Exercise3
||-- hy-intro-to-programming-exam-04052024
|||-- Exam04052024-Exercise1
|||-- Exam04052024-Exercise2
||`-- Exam04052024-Exercise3|`-- mooc-programming-24
||-- part01-01_emoticon
||-- part01-02_seven_brothers
||-- part01-03_row_your_boat
||-- part01-04_minutes_in_a_year
||-- part01-05_print_code
||-- part01-06_name_twice
||-- part01-07_name_and_exclamation_marks
||-- part01-08_name_and_address
||-- part01-09_utterances
||-- part01-10_story
||-- part01-10b_extra_space
||-- part01-11_arithmetics
||-- part01-12_print_a_single_line
||-- part01-13_times_five
||-- part01-14_name_and_age
||-- part01-15_seconds_in_a_day
||-- part01-16_product
||-- part01-17_sum_and_product
||-- part01-18_sum_and_mean
||-- part01-19_food_expenditure
||-- part01-20_students_in_groups
||-- part01-21_orwell
||-- part01-22_absolute_value
||-- part01-23_soup_or_no_soup
||-- part01-24_order_of_magnitude
||-- part01-25_calculator
||-- part01-26_temperatures
||-- part01-27_daily_wages
||-- part01-28_loyalty_bonus
||-- part01-29_what_to_wear_tomorrow
||-- part01-30_quadratic_formula
||-- part02-01_fix_syntax
||-- part02-02_number_of_characters
||-- part02-03_typecasting
||-- part02-04_age_of_maturity
||-- part02-05_greater_or_equal
||-- part02-06_elder
||-- part02-07_alphabetically_last
||-- part02-08_age_check
||-- part02-09_nephews
||-- part02-10_grades_and_points
||-- part02-11_fizzbuzz
||-- part02-12_leap_year
||-- part02-13_alphabetically_in_the_middle
||-- part02-14_gift_tax_calculator
||-- part02-15_shall_we_continue
||-- part02-16_input_validation
||-- part02-17_countdown
||-- part02-18_repeat_password
||-- part02-19_pin_and_number_of_attempts
||-- part02-20_next_leap_year
||-- part02-21_story
||-- part02-22_working_with_numbers
||-- part03-01_print_numbers
||-- part03-02_countdown
||-- part03-03_numbers
||-- part03-04_powers_of_two
||-- part03-05_powers_of_base_n
||-- part03-06_consecutive_sum_v1
||-- part03-07_consecutive_sum_v2
||-- part03-08_string_multiplied
||-- part03-09_longer_string
||-- part03-10_end_to_beginning
||-- part03-11_second_and_second_to_last
||-- part03-12_line_of_hashes
||-- part03-13_rectangle_of_hashes
||-- part03-14_underlining
||-- part03-15_right_aligned
||-- part03-16_framed_word
||-- part03-17_substrings_part_1
||-- part03-18_substrings_part_2
||-- part03-19_does_it_contain_vowels
||-- part03-20_find_first_substring
||-- part03-21_find_all_substrings
||-- part03-22_second_occurrence
||-- part03-23_multiplication
||-- part03-24_first_letters_of_words
||-- part03-25_factorial
||-- part03-26_flip_the_pairs
||-- part03-27_taking_turns
||-- part03-28_seven_brothers
||-- part03-29_first_character
||-- part03-30_mean
||-- part03-31_print_many_times
||-- part03-32_square_of_hashes
||-- part03-33_chessboard
||-- part03-34_word_squared
||-- part04-01_hello_visual_studio_code
||-- part04-02_line
||-- part04-03_box_of_hashes
||-- part04-04_square_of_hashes
||-- part04-05_square
||-- part04-06_triangle
||-- part04-07_shape
||-- part04-08_spruce
||-- part04-09_greatest_number
||-- part04-10_same_characters
||-- part04-11_first_second_last
||-- part04-12_change_value_of_item
||-- part04-13_add_items_to_list
||-- part04-14_addition_and_removal
||-- part04-15_same_word_twice
||-- part04-16_list_twice
||-- part04-17_length_of_list
||-- part04-18_mean
||-- part04-19_range_of_list
||-- part04-20_star_studded
||-- part04-21_negative_to_positive
||-- part04-22_list_of_stars
||-- part04-23_anagrams
||-- part04-24_palindromes
||-- part04-25_sum_of_positives
||-- part04-26_even_numbers
||-- part04-27_sum_of_lists
||-- part04-28_distinct_numbers
||-- part04-29_length_of_longest
||-- part04-30_shortest_in_list
||-- part04-31_all_longest_in_list
||-- part04-32_integers_to_strings
||-- part04-33_everything_reversed
||-- part04-34_most_common_character
||-- part04-35_no_vowels_allowed
||-- part04-36_no_shouting_allowed
||-- part04-37_neighbours_in_list
||-- part04-38_grade_statistics
||-- part05-01_longest_string
||-- part05-02_number_of_elements
||-- part05-03_go
||-- part05-04_sudoku_row
||-- part05-05_sudoku_column
||-- part05-06_sudoku_block
||-- part05-07_sudoku_grid
||-- part05-08_items_multiplied_by_two
||-- part05-09_remove_smallest
||-- part05-10_sudoku_print_and_add
||-- part05-11_sudoku_add_to_copy
||-- part05-12_tic_tac_toe
||-- part05-13_transpose_matrix
||-- part05-14_times_ten
||-- part05-15_factorials
||-- part05-16_histogram
||-- part05-17_phone_book_v1
||-- part05-18_phone_book_v2
||-- part05-19_invert_dictionary
||-- part05-20_numbers_spelled_out
||-- part05-21_movie_database
||-- part05-22_find_movies
||-- part05-23_create_tuple
||-- part05-24_oldest_person
||-- part05-25_older_people
||-- part05-26_student_database
||-- part05-27_letter_square
||-- part06-01_largest_number
||-- part06-02_fruit_market
||-- part06-03_matrix
||-- part06-04_course_grading_part_1
||-- part06-05_course_grading_part_2
||-- part06-06_course_grading_part_3
||-- part06-07_spellchecker
||-- part06-08_recipe_search
||-- part06-09_city_bikes
||-- part06-10_inscription
||-- part06-11_diary
||-- part06-12_filtering_file_contents
||-- part06-13_store_personal_data
||-- part06-14_course_grading_part_4
||-- part06-15_word_search
||-- part06-16_dictionary_file
||-- part06-17_read_input
||-- part06-18_parameter_validation
||-- part06-19_incorrect_lottery_numbers
||-- part07-01_hypotenuse
||-- part07-02_special_characters
||-- part07-03_fractions
||-- part07-04_lottery_numbers
||-- part07-05_password_generator_part_1
||-- part07-06_password_generator_part_2
||-- part07-07_dice_roller
||-- part07-08_random_words
||-- part07-09_how_old
||-- part07-10_valid_pic
||-- part07-11_screen_time
||-- part07-12_json_files
||-- part07-13_course_statistics
||-- part07-14_who_cheated
||-- part07-15_who_cheated_2
||-- part07-16_spellchecker_2
||-- part07-17_string_helper
||-- part07-18_own_programming_language
||-- part08-01_smallest_average
||-- part08-02_row_sums
||-- part08-03_list_years
||-- part08-04_shopping_list
||-- part08-05_book
||-- part08-06_three_classes
||-- part08-07_pet
||-- part08-08_older_book
||-- part08-09_books_of_genre
||-- part08-10_decreasing_counter
||-- part08-11_first_and_last_name
||-- part08-12_number_stats
||-- part08-13_stopwatch
||-- part08-14_clock
||-- part08-15_lunchcard
||-- part08-16_series
||-- part09-01_fastest_car
||-- part09-02_passing_submissions
||-- part09-03_baby_centre
||-- part09-04_lunchcard_and_paymentterminal
||-- part09-05_comparing_properties
||-- part09-06_pets
||-- part09-07_box_of_presents
||-- part09-08_shortest_in_room
||-- part09-09_car
||-- part09-10_recording
||-- part09-11_weather_station
||-- part09-12_service_charge
||-- part09-13_postcodes
||-- part09-14_list_helper
||-- part09-15_item_suitcase_hold
||-- part10-01_laptop_computer
||-- part10-02_game_museum
||-- part10-03_areas
||-- part10-04_word_game
||-- part10-05_supergroup
||-- part10-06_secret_magic_potion
||-- part10-07_money
||-- part10-08_simple_date
||-- part10-09_iterable_shopping_list
||-- part10-10_phone_book_v1
||-- part10-11_phone_book_v2
||-- part10-12_course_records
||-- part11-01_square_roots
||-- part11-02_rows_of_stars
||-- part11-03_best_exam_result
||-- part11-04_lengths
||-- part11-05_remove_smaller_than
||-- part11-06_begin_with_vowel
||-- part11-07_lottery_numbers
||-- part11-08_filter_forbidden
||-- part11-09_products_in_shopping_list
||-- part11-10_cheaper_properties
||-- part11-11_lengths_of_strings
||-- part11-12_most_common_words
||-- part11-13_add_numbers_to_list
||-- part11-14_recursive_sum
||-- part11-15_balanced_brackets
||-- part11-16_greatest_node
||-- part11-17_bosses_and_subordinates
||-- part11-18_order_book
||-- part11-19_order_book_application
||-- part12-01_remaining_stock
||-- part12-02_seasons
||-- part12-03_ratings
||-- part12-04_climbing_route
||-- part12-05_climbing_areas
||-- part12-06_ballplayers
||-- part12-07_product_search
||-- part12-08_even_numbers
||-- part12-09_prime_numbers
||-- part12-10_random_words
||-- part12-11_attempted_courses
||-- part12-12_filtering_attempts
||-- part12-13_credits
||-- part12-14_regular_expressions
||-- part12-15_hockey_statistics
||-- part13-01_four_robots
||-- part13-02_robots_row
||-- part13-03_hundred_robots
||-- part13-04_random_robots
||-- part13-05_vertical_movement
||-- part13-06_round_the_perimeter
||-- part13-07_two_robots
||-- part13-08_robot_circle
||-- part13-09_bouncing_ball
||-- part13-10_robot_invasion
||-- part13-11_four_directions
||-- part13-12_four_walls
||-- part13-13_two_players
||-- part13-14_robot_and_mouse
||-- part13-15_robot_location
||-- part13-16_clock
||-- part13-17_asteroids
|`-- part14-01_own_game`-- rage-programming-24-course-data

About

Exercises & notes from University of Helsinki's Python Programming MOOC 2024

Topics

Resources

Stars

12 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Force GitHub README to respect dark mode\n(function() {\n var style = document.createElement('style');\n style.textContent = '\n .markdown-body {\n color-scheme: dark light;\n }\n .markdown-body pre { background: #161b22 !important; }\n .markdown-body code { background: rgba(110, 118, 129, 0.4) !important; }\n .markdown-body table th, .markdown-body table td { border-color: #30363d !important; }\n .markdown-body img { background: #0d1117; }\n .markdown-body blockquote { border-left-color: #8b949e; }\n .markdown-body hr { border-color: #30363d; }\n ';\n document.head.appendChild(style);\n})();", "GitHub Dark Mode README Fix"); } } catch(__e) { console.warn('[Userscript:GitHub Dark Mode README Fix]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Repository files navigation

Python Programming MOOC 2024

All my notes and solutions from the University of Helsinki's Python Programming MOOC 2024

The exercises and examples are entirely implemented in Python 3. There are no requirements for external packages and/or libraries, except for Part 13 and 14, which requires Pygame.

Please feel free to message me for any questions or suggestions.

References

Course Website: https://programming-24.mooc.fi/

Files

|-- 0 - Master Notes.md
|-- 1 - Pygame.md
|-- 0 - Introduction to Programming Notes
||-- Data-Files
||-- Intro To Programming Exam - 04-05-2024
|||-- Exam1.md
|||-- Notes
||||-- Exercise 1.py
||||-- Exercise 2 copy.py
||||-- Exercise 2.py
||||-- Exercise 3.py
||||-- statistics copy.txt
|||`-- statistics.txt||`-- Submissions
|||-- ValueErrors.txt
|||-- exercise1.py
|||-- exercise2.py
|||-- exercise3.py
||`-- statistics.txt||-- Part 1 - Arithmetic Operations.py||-- Part 1 - Conditional Statements.py||-- Part 1 - Prints & Inputs.py||-- Part 2 - More Conditionals.py||-- Part 2 - Simple Loops.py||-- Part 3 - Debugging Example.py||-- Part 3 - Defining Functions.py||-- Part 3 - Loops with Conditions.py||-- Part 3 - More Loops.py||-- Part 3 - Strings.py||-- Part 4 - Definite iteration.py||-- Part 4 - Developing a larger programming project.py||-- Part 4 - Grade Statistics - 2.py||-- Part 4 - Grade Statistics.py||-- Part 4 - Lists.py||-- Part 4 - More Functions.py||-- Part 4 - More strings and lists.py||-- Part 4 - Print statement formatting.py||-- Part 5 - Dictionary.py||-- Part 5 - More Lists and Matrix.py||-- Part 5 - References.py||-- Part 5 - Student database.py||-- Part 5 - Sudoku.py||-- Part 5 - Test.ipynb||-- Part 5 - Tuple.py||-- Part 6 - Handling errors.py||-- Part 6 - Reading Files.py||-- Part 6 - Writing files.py||-- Part 7 - Creating your own modules.py||-- Part 7 - Data processing.py||-- Part 7 - Modules.py||-- Part 7 - More Python features.py||-- Part 7 - Randomness.py||-- Part 7 - Times and dates.py|`-- string_helper.py
|-- 1 - Advanced Course in Programming Notes
||-- Advanced Course in Programming Exam - 15-06-2024
|||-- Exam.md
|||-- Exercise 1.py
|||-- Exercise 2.py
|||-- Exercise 3-1.py
|||-- Exercise 3.py
||`-- recipes.txt||-- Data-Files||-- Part 10 - Access modifiers.py||-- Part 10 - Class hierarchies.py||-- Part 10 - Developing a larger application.py||-- Part 10 - Object oriented programming techniques.py||-- Part 11 - List comprehensions.py||-- Part 11 - More comprehensions.py||-- Part 11 - More recursion examples.py||-- Part 11 - Recursion.py||-- Part 12 - Functional programming.py||-- Part 12 - Functions as arguments.py||-- Part 12 - Generators.py||-- Part 12 - Lambda Function Exercises.ipynb||-- Part 12 - Regular expressions.py||-- Part 13 - Animation.py||-- Part 13 - Events.py||-- Part 13 - More pygame techniques.py||-- Part 13 - Pygame.py||-- Part 14 - Finishing the game.py||-- Part 14 - Game project.py||-- Part 14 - Robot and boxes.py||-- Part 8 - Classes and objects.py||-- Part 8 - Defining classes.py||-- Part 8 - Defining methods.py||-- Part 8 - More examples of classes.py||-- Part 8 - Objects and methods.py||-- Part 9 - Class attributes.py||-- Part 9 - Encapsulation.py||-- Part 9 - More examples with classes.py||-- Part 9 - Objects and references.py||-- Part 9 - Objects as attributes.py|`-- Part 9 - Scope of methods.py
|-- Applications
||-- CoinPort
|||-- coin.png
|||-- door.png
|||-- game.py
|||-- monster.png
||`-- robot.png||-- CourseRecords Application||`-- main.py
||-- Hockey Statistics Application
|||-- all.json
|||-- hockey_statistics-v2.py
|||-- hockey_statistics.py
||`-- partial.json||-- Maze Generator|||-- Maze generation copy.py|||-- Maze generation.py||`-- maze.txt
||-- OrderBook Application
|||-- input.txt
|||-- input2.txt
|||-- input3.txt
|||-- main.py
||`-- test.py||-- Pacman||-- Part 9 - Objects as attributes - Example|||-- MainFunction.py|||-- completedcourse.py|||-- course.py||`-- student.py
||-- PhoneBook Application
|||-- main.py
|||-- main_expansion_v2.py
||`-- phonebook.txt||-- Rich The Robot|||-- coin.png|||-- door.png|||-- game.py|||-- monster.png||`-- robot.png
||-- Your-own-game
|||-- coin.png
|||-- door.png
|||-- game.py
|||-- monster.png
||`-- robot.png|`-- sokoban
||-- README.md
||-- sokoban-english.py
|-- Data-Files
|-- Images
|-- README.md
|-- Reference Notes
||-- Algorithms.py
||-- Angles in Pygame.py
||-- Comprehensions.py
||-- Primes
|||-- 10m_prime_sive.txt
|||-- 1m_prime_sive_v0.txt
|||-- Prime_Sieve_1.py
|||-- Prime_Sieve_2.py
|||-- Prime_Sieve_3.py
|||-- Prime_Sieve_4.py
|||-- Prime_Sieve_4a.py
|||-- Prime_Sieve_5py
|||-- Trial_Div_1.py
|||-- Trial_Div_2.py
||`-- solution_3|||-- Dockerfile|||-- PrimePY.py|||-- README.md||`-- tests
|||-- __init__.py
||`-- test_sieve.py|`-- f-string.py
|-- Slides
||-- Slides 1.pdf
||-- Slides 10.pdf
||-- Slides 11.pdf
||-- Slides 12.pdf
||-- Slides 2.pdf
||-- Slides 3.pdf
||-- Slides 4.pdf
||-- Slides 5.pdf
||-- Slides 6.pdf
||-- Slides 7.pdf
|`-- Slides 8.pdf|-- course-submission-files||-- hy-adv-course-in-prog-exam-15062024|||-- Exam15062024-Exercise1|||-- Exam15062024-Exercise2||`-- Exam15062024-Exercise3
||-- hy-intro-to-programming-exam-04052024
|||-- Exam04052024-Exercise1
|||-- Exam04052024-Exercise2
||`-- Exam04052024-Exercise3|`-- mooc-programming-24
||-- part01-01_emoticon
||-- part01-02_seven_brothers
||-- part01-03_row_your_boat
||-- part01-04_minutes_in_a_year
||-- part01-05_print_code
||-- part01-06_name_twice
||-- part01-07_name_and_exclamation_marks
||-- part01-08_name_and_address
||-- part01-09_utterances
||-- part01-10_story
||-- part01-10b_extra_space
||-- part01-11_arithmetics
||-- part01-12_print_a_single_line
||-- part01-13_times_five
||-- part01-14_name_and_age
||-- part01-15_seconds_in_a_day
||-- part01-16_product
||-- part01-17_sum_and_product
||-- part01-18_sum_and_mean
||-- part01-19_food_expenditure
||-- part01-20_students_in_groups
||-- part01-21_orwell
||-- part01-22_absolute_value
||-- part01-23_soup_or_no_soup
||-- part01-24_order_of_magnitude
||-- part01-25_calculator
||-- part01-26_temperatures
||-- part01-27_daily_wages
||-- part01-28_loyalty_bonus
||-- part01-29_what_to_wear_tomorrow
||-- part01-30_quadratic_formula
||-- part02-01_fix_syntax
||-- part02-02_number_of_characters
||-- part02-03_typecasting
||-- part02-04_age_of_maturity
||-- part02-05_greater_or_equal
||-- part02-06_elder
||-- part02-07_alphabetically_last
||-- part02-08_age_check
||-- part02-09_nephews
||-- part02-10_grades_and_points
||-- part02-11_fizzbuzz
||-- part02-12_leap_year
||-- part02-13_alphabetically_in_the_middle
||-- part02-14_gift_tax_calculator
||-- part02-15_shall_we_continue
||-- part02-16_input_validation
||-- part02-17_countdown
||-- part02-18_repeat_password
||-- part02-19_pin_and_number_of_attempts
||-- part02-20_next_leap_year
||-- part02-21_story
||-- part02-22_working_with_numbers
||-- part03-01_print_numbers
||-- part03-02_countdown
||-- part03-03_numbers
||-- part03-04_powers_of_two
||-- part03-05_powers_of_base_n
||-- part03-06_consecutive_sum_v1
||-- part03-07_consecutive_sum_v2
||-- part03-08_string_multiplied
||-- part03-09_longer_string
||-- part03-10_end_to_beginning
||-- part03-11_second_and_second_to_last
||-- part03-12_line_of_hashes
||-- part03-13_rectangle_of_hashes
||-- part03-14_underlining
||-- part03-15_right_aligned
||-- part03-16_framed_word
||-- part03-17_substrings_part_1
||-- part03-18_substrings_part_2
||-- part03-19_does_it_contain_vowels
||-- part03-20_find_first_substring
||-- part03-21_find_all_substrings
||-- part03-22_second_occurrence
||-- part03-23_multiplication
||-- part03-24_first_letters_of_words
||-- part03-25_factorial
||-- part03-26_flip_the_pairs
||-- part03-27_taking_turns
||-- part03-28_seven_brothers
||-- part03-29_first_character
||-- part03-30_mean
||-- part03-31_print_many_times
||-- part03-32_square_of_hashes
||-- part03-33_chessboard
||-- part03-34_word_squared
||-- part04-01_hello_visual_studio_code
||-- part04-02_line
||-- part04-03_box_of_hashes
||-- part04-04_square_of_hashes
||-- part04-05_square
||-- part04-06_triangle
||-- part04-07_shape
||-- part04-08_spruce
||-- part04-09_greatest_number
||-- part04-10_same_characters
||-- part04-11_first_second_last
||-- part04-12_change_value_of_item
||-- part04-13_add_items_to_list
||-- part04-14_addition_and_removal
||-- part04-15_same_word_twice
||-- part04-16_list_twice
||-- part04-17_length_of_list
||-- part04-18_mean
||-- part04-19_range_of_list
||-- part04-20_star_studded
||-- part04-21_negative_to_positive
||-- part04-22_list_of_stars
||-- part04-23_anagrams
||-- part04-24_palindromes
||-- part04-25_sum_of_positives
||-- part04-26_even_numbers
||-- part04-27_sum_of_lists
||-- part04-28_distinct_numbers
||-- part04-29_length_of_longest
||-- part04-30_shortest_in_list
||-- part04-31_all_longest_in_list
||-- part04-32_integers_to_strings
||-- part04-33_everything_reversed
||-- part04-34_most_common_character
||-- part04-35_no_vowels_allowed
||-- part04-36_no_shouting_allowed
||-- part04-37_neighbours_in_list
||-- part04-38_grade_statistics
||-- part05-01_longest_string
||-- part05-02_number_of_elements
||-- part05-03_go
||-- part05-04_sudoku_row
||-- part05-05_sudoku_column
||-- part05-06_sudoku_block
||-- part05-07_sudoku_grid
||-- part05-08_items_multiplied_by_two
||-- part05-09_remove_smallest
||-- part05-10_sudoku_print_and_add
||-- part05-11_sudoku_add_to_copy
||-- part05-12_tic_tac_toe
||-- part05-13_transpose_matrix
||-- part05-14_times_ten
||-- part05-15_factorials
||-- part05-16_histogram
||-- part05-17_phone_book_v1
||-- part05-18_phone_book_v2
||-- part05-19_invert_dictionary
||-- part05-20_numbers_spelled_out
||-- part05-21_movie_database
||-- part05-22_find_movies
||-- part05-23_create_tuple
||-- part05-24_oldest_person
||-- part05-25_older_people
||-- part05-26_student_database
||-- part05-27_letter_square
||-- part06-01_largest_number
||-- part06-02_fruit_market
||-- part06-03_matrix
||-- part06-04_course_grading_part_1
||-- part06-05_course_grading_part_2
||-- part06-06_course_grading_part_3
||-- part06-07_spellchecker
||-- part06-08_recipe_search
||-- part06-09_city_bikes
||-- part06-10_inscription
||-- part06-11_diary
||-- part06-12_filtering_file_contents
||-- part06-13_store_personal_data
||-- part06-14_course_grading_part_4
||-- part06-15_word_search
||-- part06-16_dictionary_file
||-- part06-17_read_input
||-- part06-18_parameter_validation
||-- part06-19_incorrect_lottery_numbers
||-- part07-01_hypotenuse
||-- part07-02_special_characters
||-- part07-03_fractions
||-- part07-04_lottery_numbers
||-- part07-05_password_generator_part_1
||-- part07-06_password_generator_part_2
||-- part07-07_dice_roller
||-- part07-08_random_words
||-- part07-09_how_old
||-- part07-10_valid_pic
||-- part07-11_screen_time
||-- part07-12_json_files
||-- part07-13_course_statistics
||-- part07-14_who_cheated
||-- part07-15_who_cheated_2
||-- part07-16_spellchecker_2
||-- part07-17_string_helper
||-- part07-18_own_programming_language
||-- part08-01_smallest_average
||-- part08-02_row_sums
||-- part08-03_list_years
||-- part08-04_shopping_list
||-- part08-05_book
||-- part08-06_three_classes
||-- part08-07_pet
||-- part08-08_older_book
||-- part08-09_books_of_genre
||-- part08-10_decreasing_counter
||-- part08-11_first_and_last_name
||-- part08-12_number_stats
||-- part08-13_stopwatch
||-- part08-14_clock
||-- part08-15_lunchcard
||-- part08-16_series
||-- part09-01_fastest_car
||-- part09-02_passing_submissions
||-- part09-03_baby_centre
||-- part09-04_lunchcard_and_paymentterminal
||-- part09-05_comparing_properties
||-- part09-06_pets
||-- part09-07_box_of_presents
||-- part09-08_shortest_in_room
||-- part09-09_car
||-- part09-10_recording
||-- part09-11_weather_station
||-- part09-12_service_charge
||-- part09-13_postcodes
||-- part09-14_list_helper
||-- part09-15_item_suitcase_hold
||-- part10-01_laptop_computer
||-- part10-02_game_museum
||-- part10-03_areas
||-- part10-04_word_game
||-- part10-05_supergroup
||-- part10-06_secret_magic_potion
||-- part10-07_money
||-- part10-08_simple_date
||-- part10-09_iterable_shopping_list
||-- part10-10_phone_book_v1
||-- part10-11_phone_book_v2
||-- part10-12_course_records
||-- part11-01_square_roots
||-- part11-02_rows_of_stars
||-- part11-03_best_exam_result
||-- part11-04_lengths
||-- part11-05_remove_smaller_than
||-- part11-06_begin_with_vowel
||-- part11-07_lottery_numbers
||-- part11-08_filter_forbidden
||-- part11-09_products_in_shopping_list
||-- part11-10_cheaper_properties
||-- part11-11_lengths_of_strings
||-- part11-12_most_common_words
||-- part11-13_add_numbers_to_list
||-- part11-14_recursive_sum
||-- part11-15_balanced_brackets
||-- part11-16_greatest_node
||-- part11-17_bosses_and_subordinates
||-- part11-18_order_book
||-- part11-19_order_book_application
||-- part12-01_remaining_stock
||-- part12-02_seasons
||-- part12-03_ratings
||-- part12-04_climbing_route
||-- part12-05_climbing_areas
||-- part12-06_ballplayers
||-- part12-07_product_search
||-- part12-08_even_numbers
||-- part12-09_prime_numbers
||-- part12-10_random_words
||-- part12-11_attempted_courses
||-- part12-12_filtering_attempts
||-- part12-13_credits
||-- part12-14_regular_expressions
||-- part12-15_hockey_statistics
||-- part13-01_four_robots
||-- part13-02_robots_row
||-- part13-03_hundred_robots
||-- part13-04_random_robots
||-- part13-05_vertical_movement
||-- part13-06_round_the_perimeter
||-- part13-07_two_robots
||-- part13-08_robot_circle
||-- part13-09_bouncing_ball
||-- part13-10_robot_invasion
||-- part13-11_four_directions
||-- part13-12_four_walls
||-- part13-13_two_players
||-- part13-14_robot_and_mouse
||-- part13-15_robot_location
||-- part13-16_clock
||-- part13-17_asteroids
|`-- part14-01_own_game`-- rage-programming-24-course-data

About

Exercises & notes from University of Helsinki's Python Programming MOOC 2024

Topics

Resources

Stars

12 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Highlight search terms from Google/DuckDuckGo/Bing referrer\n(function() {\n var ref = document.referrer;\n var terms = [];\n \n if (ref.includes('google.com') || ref.includes('duckduckgo.com') || ref.includes('bing.com')) {\n var url = new URL(ref);\n var q = url.searchParams.get('q') || url.searchParams.get('p');\n if (q) {\n terms = q.split(/\\s+/).filter(function(t) { return t.length > 2; });\n }\n }\n \n if (terms.length === 0) return;\n \n var style = document.createElement('style');\n style.textContent = '.userscript-highlight { background: #fbbf24; color: #1a1a2e; padding: 1px 3px; border-radius: 2px; }';\n document.head.appendChild(style);\n \n function highlight(node) {\n if (node.nodeType === 3) { // text node\n var text = node.textContent;\n var found = false;\n terms.forEach(function(term) {\n var regex = new RegExp('(' + term.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\') + ')', 'gi');\n if (regex.test(text)) {\n found = true;\n var frag = document.createDocumentFragment();\n var parts = text.split(regex);\n parts.forEach(function(part, i) {\n if (i % 2 === 0) {\n frag.appendChild(document.createTextNode(part));\n } else {\n var span = document.createElement('span');\n span.className = 'userscript-highlight';\n span.textContent = part;\n frag.appendChild(span);\n }\n });\n node.parentNode.replaceChild(frag, node);\n }\n });\n } else if (node.nodeType === 1 && node.childNodes) { // element\n var skipTags = ['SCRIPT', 'STYLE', 'NOSCRIPT', 'TEXTAREA', 'INPUT', 'SELECT'];\n if (!skipTags.includes(node.tagName)) {\n Array.from(node.childNodes).forEach(highlight);\n }\n }\n }\n \n highlight(document.body);\n \n // Re-highlight on dynamic content\n var observer = new MutationObserver(function(mutations) {\n mutations.forEach(function(m) {\n m.addedNodes.forEach(function(node) {\n if (node.nodeType === 1 || node.nodeType === 3) highlight(node);\n });\n });\n });\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Highlight Search Terms"); } } catch(__e) { console.warn('[Userscript:Highlight Search Terms]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Repository files navigation

Python Programming MOOC 2024

All my notes and solutions from the University of Helsinki's Python Programming MOOC 2024

The exercises and examples are entirely implemented in Python 3. There are no requirements for external packages and/or libraries, except for Part 13 and 14, which requires Pygame.

Please feel free to message me for any questions or suggestions.

References

Course Website: https://programming-24.mooc.fi/

Files

|-- 0 - Master Notes.md
|-- 1 - Pygame.md
|-- 0 - Introduction to Programming Notes
||-- Data-Files
||-- Intro To Programming Exam - 04-05-2024
|||-- Exam1.md
|||-- Notes
||||-- Exercise 1.py
||||-- Exercise 2 copy.py
||||-- Exercise 2.py
||||-- Exercise 3.py
||||-- statistics copy.txt
|||`-- statistics.txt||`-- Submissions
|||-- ValueErrors.txt
|||-- exercise1.py
|||-- exercise2.py
|||-- exercise3.py
||`-- statistics.txt||-- Part 1 - Arithmetic Operations.py||-- Part 1 - Conditional Statements.py||-- Part 1 - Prints & Inputs.py||-- Part 2 - More Conditionals.py||-- Part 2 - Simple Loops.py||-- Part 3 - Debugging Example.py||-- Part 3 - Defining Functions.py||-- Part 3 - Loops with Conditions.py||-- Part 3 - More Loops.py||-- Part 3 - Strings.py||-- Part 4 - Definite iteration.py||-- Part 4 - Developing a larger programming project.py||-- Part 4 - Grade Statistics - 2.py||-- Part 4 - Grade Statistics.py||-- Part 4 - Lists.py||-- Part 4 - More Functions.py||-- Part 4 - More strings and lists.py||-- Part 4 - Print statement formatting.py||-- Part 5 - Dictionary.py||-- Part 5 - More Lists and Matrix.py||-- Part 5 - References.py||-- Part 5 - Student database.py||-- Part 5 - Sudoku.py||-- Part 5 - Test.ipynb||-- Part 5 - Tuple.py||-- Part 6 - Handling errors.py||-- Part 6 - Reading Files.py||-- Part 6 - Writing files.py||-- Part 7 - Creating your own modules.py||-- Part 7 - Data processing.py||-- Part 7 - Modules.py||-- Part 7 - More Python features.py||-- Part 7 - Randomness.py||-- Part 7 - Times and dates.py|`-- string_helper.py
|-- 1 - Advanced Course in Programming Notes
||-- Advanced Course in Programming Exam - 15-06-2024
|||-- Exam.md
|||-- Exercise 1.py
|||-- Exercise 2.py
|||-- Exercise 3-1.py
|||-- Exercise 3.py
||`-- recipes.txt||-- Data-Files||-- Part 10 - Access modifiers.py||-- Part 10 - Class hierarchies.py||-- Part 10 - Developing a larger application.py||-- Part 10 - Object oriented programming techniques.py||-- Part 11 - List comprehensions.py||-- Part 11 - More comprehensions.py||-- Part 11 - More recursion examples.py||-- Part 11 - Recursion.py||-- Part 12 - Functional programming.py||-- Part 12 - Functions as arguments.py||-- Part 12 - Generators.py||-- Part 12 - Lambda Function Exercises.ipynb||-- Part 12 - Regular expressions.py||-- Part 13 - Animation.py||-- Part 13 - Events.py||-- Part 13 - More pygame techniques.py||-- Part 13 - Pygame.py||-- Part 14 - Finishing the game.py||-- Part 14 - Game project.py||-- Part 14 - Robot and boxes.py||-- Part 8 - Classes and objects.py||-- Part 8 - Defining classes.py||-- Part 8 - Defining methods.py||-- Part 8 - More examples of classes.py||-- Part 8 - Objects and methods.py||-- Part 9 - Class attributes.py||-- Part 9 - Encapsulation.py||-- Part 9 - More examples with classes.py||-- Part 9 - Objects and references.py||-- Part 9 - Objects as attributes.py|`-- Part 9 - Scope of methods.py
|-- Applications
||-- CoinPort
|||-- coin.png
|||-- door.png
|||-- game.py
|||-- monster.png
||`-- robot.png||-- CourseRecords Application||`-- main.py
||-- Hockey Statistics Application
|||-- all.json
|||-- hockey_statistics-v2.py
|||-- hockey_statistics.py
||`-- partial.json||-- Maze Generator|||-- Maze generation copy.py|||-- Maze generation.py||`-- maze.txt
||-- OrderBook Application
|||-- input.txt
|||-- input2.txt
|||-- input3.txt
|||-- main.py
||`-- test.py||-- Pacman||-- Part 9 - Objects as attributes - Example|||-- MainFunction.py|||-- completedcourse.py|||-- course.py||`-- student.py
||-- PhoneBook Application
|||-- main.py
|||-- main_expansion_v2.py
||`-- phonebook.txt||-- Rich The Robot|||-- coin.png|||-- door.png|||-- game.py|||-- monster.png||`-- robot.png
||-- Your-own-game
|||-- coin.png
|||-- door.png
|||-- game.py
|||-- monster.png
||`-- robot.png|`-- sokoban
||-- README.md
||-- sokoban-english.py
|-- Data-Files
|-- Images
|-- README.md
|-- Reference Notes
||-- Algorithms.py
||-- Angles in Pygame.py
||-- Comprehensions.py
||-- Primes
|||-- 10m_prime_sive.txt
|||-- 1m_prime_sive_v0.txt
|||-- Prime_Sieve_1.py
|||-- Prime_Sieve_2.py
|||-- Prime_Sieve_3.py
|||-- Prime_Sieve_4.py
|||-- Prime_Sieve_4a.py
|||-- Prime_Sieve_5py
|||-- Trial_Div_1.py
|||-- Trial_Div_2.py
||`-- solution_3|||-- Dockerfile|||-- PrimePY.py|||-- README.md||`-- tests
|||-- __init__.py
||`-- test_sieve.py|`-- f-string.py
|-- Slides
||-- Slides 1.pdf
||-- Slides 10.pdf
||-- Slides 11.pdf
||-- Slides 12.pdf
||-- Slides 2.pdf
||-- Slides 3.pdf
||-- Slides 4.pdf
||-- Slides 5.pdf
||-- Slides 6.pdf
||-- Slides 7.pdf
|`-- Slides 8.pdf|-- course-submission-files||-- hy-adv-course-in-prog-exam-15062024|||-- Exam15062024-Exercise1|||-- Exam15062024-Exercise2||`-- Exam15062024-Exercise3
||-- hy-intro-to-programming-exam-04052024
|||-- Exam04052024-Exercise1
|||-- Exam04052024-Exercise2
||`-- Exam04052024-Exercise3|`-- mooc-programming-24
||-- part01-01_emoticon
||-- part01-02_seven_brothers
||-- part01-03_row_your_boat
||-- part01-04_minutes_in_a_year
||-- part01-05_print_code
||-- part01-06_name_twice
||-- part01-07_name_and_exclamation_marks
||-- part01-08_name_and_address
||-- part01-09_utterances
||-- part01-10_story
||-- part01-10b_extra_space
||-- part01-11_arithmetics
||-- part01-12_print_a_single_line
||-- part01-13_times_five
||-- part01-14_name_and_age
||-- part01-15_seconds_in_a_day
||-- part01-16_product
||-- part01-17_sum_and_product
||-- part01-18_sum_and_mean
||-- part01-19_food_expenditure
||-- part01-20_students_in_groups
||-- part01-21_orwell
||-- part01-22_absolute_value
||-- part01-23_soup_or_no_soup
||-- part01-24_order_of_magnitude
||-- part01-25_calculator
||-- part01-26_temperatures
||-- part01-27_daily_wages
||-- part01-28_loyalty_bonus
||-- part01-29_what_to_wear_tomorrow
||-- part01-30_quadratic_formula
||-- part02-01_fix_syntax
||-- part02-02_number_of_characters
||-- part02-03_typecasting
||-- part02-04_age_of_maturity
||-- part02-05_greater_or_equal
||-- part02-06_elder
||-- part02-07_alphabetically_last
||-- part02-08_age_check
||-- part02-09_nephews
||-- part02-10_grades_and_points
||-- part02-11_fizzbuzz
||-- part02-12_leap_year
||-- part02-13_alphabetically_in_the_middle
||-- part02-14_gift_tax_calculator
||-- part02-15_shall_we_continue
||-- part02-16_input_validation
||-- part02-17_countdown
||-- part02-18_repeat_password
||-- part02-19_pin_and_number_of_attempts
||-- part02-20_next_leap_year
||-- part02-21_story
||-- part02-22_working_with_numbers
||-- part03-01_print_numbers
||-- part03-02_countdown
||-- part03-03_numbers
||-- part03-04_powers_of_two
||-- part03-05_powers_of_base_n
||-- part03-06_consecutive_sum_v1
||-- part03-07_consecutive_sum_v2
||-- part03-08_string_multiplied
||-- part03-09_longer_string
||-- part03-10_end_to_beginning
||-- part03-11_second_and_second_to_last
||-- part03-12_line_of_hashes
||-- part03-13_rectangle_of_hashes
||-- part03-14_underlining
||-- part03-15_right_aligned
||-- part03-16_framed_word
||-- part03-17_substrings_part_1
||-- part03-18_substrings_part_2
||-- part03-19_does_it_contain_vowels
||-- part03-20_find_first_substring
||-- part03-21_find_all_substrings
||-- part03-22_second_occurrence
||-- part03-23_multiplication
||-- part03-24_first_letters_of_words
||-- part03-25_factorial
||-- part03-26_flip_the_pairs
||-- part03-27_taking_turns
||-- part03-28_seven_brothers
||-- part03-29_first_character
||-- part03-30_mean
||-- part03-31_print_many_times
||-- part03-32_square_of_hashes
||-- part03-33_chessboard
||-- part03-34_word_squared
||-- part04-01_hello_visual_studio_code
||-- part04-02_line
||-- part04-03_box_of_hashes
||-- part04-04_square_of_hashes
||-- part04-05_square
||-- part04-06_triangle
||-- part04-07_shape
||-- part04-08_spruce
||-- part04-09_greatest_number
||-- part04-10_same_characters
||-- part04-11_first_second_last
||-- part04-12_change_value_of_item
||-- part04-13_add_items_to_list
||-- part04-14_addition_and_removal
||-- part04-15_same_word_twice
||-- part04-16_list_twice
||-- part04-17_length_of_list
||-- part04-18_mean
||-- part04-19_range_of_list
||-- part04-20_star_studded
||-- part04-21_negative_to_positive
||-- part04-22_list_of_stars
||-- part04-23_anagrams
||-- part04-24_palindromes
||-- part04-25_sum_of_positives
||-- part04-26_even_numbers
||-- part04-27_sum_of_lists
||-- part04-28_distinct_numbers
||-- part04-29_length_of_longest
||-- part04-30_shortest_in_list
||-- part04-31_all_longest_in_list
||-- part04-32_integers_to_strings
||-- part04-33_everything_reversed
||-- part04-34_most_common_character
||-- part04-35_no_vowels_allowed
||-- part04-36_no_shouting_allowed
||-- part04-37_neighbours_in_list
||-- part04-38_grade_statistics
||-- part05-01_longest_string
||-- part05-02_number_of_elements
||-- part05-03_go
||-- part05-04_sudoku_row
||-- part05-05_sudoku_column
||-- part05-06_sudoku_block
||-- part05-07_sudoku_grid
||-- part05-08_items_multiplied_by_two
||-- part05-09_remove_smallest
||-- part05-10_sudoku_print_and_add
||-- part05-11_sudoku_add_to_copy
||-- part05-12_tic_tac_toe
||-- part05-13_transpose_matrix
||-- part05-14_times_ten
||-- part05-15_factorials
||-- part05-16_histogram
||-- part05-17_phone_book_v1
||-- part05-18_phone_book_v2
||-- part05-19_invert_dictionary
||-- part05-20_numbers_spelled_out
||-- part05-21_movie_database
||-- part05-22_find_movies
||-- part05-23_create_tuple
||-- part05-24_oldest_person
||-- part05-25_older_people
||-- part05-26_student_database
||-- part05-27_letter_square
||-- part06-01_largest_number
||-- part06-02_fruit_market
||-- part06-03_matrix
||-- part06-04_course_grading_part_1
||-- part06-05_course_grading_part_2
||-- part06-06_course_grading_part_3
||-- part06-07_spellchecker
||-- part06-08_recipe_search
||-- part06-09_city_bikes
||-- part06-10_inscription
||-- part06-11_diary
||-- part06-12_filtering_file_contents
||-- part06-13_store_personal_data
||-- part06-14_course_grading_part_4
||-- part06-15_word_search
||-- part06-16_dictionary_file
||-- part06-17_read_input
||-- part06-18_parameter_validation
||-- part06-19_incorrect_lottery_numbers
||-- part07-01_hypotenuse
||-- part07-02_special_characters
||-- part07-03_fractions
||-- part07-04_lottery_numbers
||-- part07-05_password_generator_part_1
||-- part07-06_password_generator_part_2
||-- part07-07_dice_roller
||-- part07-08_random_words
||-- part07-09_how_old
||-- part07-10_valid_pic
||-- part07-11_screen_time
||-- part07-12_json_files
||-- part07-13_course_statistics
||-- part07-14_who_cheated
||-- part07-15_who_cheated_2
||-- part07-16_spellchecker_2
||-- part07-17_string_helper
||-- part07-18_own_programming_language
||-- part08-01_smallest_average
||-- part08-02_row_sums
||-- part08-03_list_years
||-- part08-04_shopping_list
||-- part08-05_book
||-- part08-06_three_classes
||-- part08-07_pet
||-- part08-08_older_book
||-- part08-09_books_of_genre
||-- part08-10_decreasing_counter
||-- part08-11_first_and_last_name
||-- part08-12_number_stats
||-- part08-13_stopwatch
||-- part08-14_clock
||-- part08-15_lunchcard
||-- part08-16_series
||-- part09-01_fastest_car
||-- part09-02_passing_submissions
||-- part09-03_baby_centre
||-- part09-04_lunchcard_and_paymentterminal
||-- part09-05_comparing_properties
||-- part09-06_pets
||-- part09-07_box_of_presents
||-- part09-08_shortest_in_room
||-- part09-09_car
||-- part09-10_recording
||-- part09-11_weather_station
||-- part09-12_service_charge
||-- part09-13_postcodes
||-- part09-14_list_helper
||-- part09-15_item_suitcase_hold
||-- part10-01_laptop_computer
||-- part10-02_game_museum
||-- part10-03_areas
||-- part10-04_word_game
||-- part10-05_supergroup
||-- part10-06_secret_magic_potion
||-- part10-07_money
||-- part10-08_simple_date
||-- part10-09_iterable_shopping_list
||-- part10-10_phone_book_v1
||-- part10-11_phone_book_v2
||-- part10-12_course_records
||-- part11-01_square_roots
||-- part11-02_rows_of_stars
||-- part11-03_best_exam_result
||-- part11-04_lengths
||-- part11-05_remove_smaller_than
||-- part11-06_begin_with_vowel
||-- part11-07_lottery_numbers
||-- part11-08_filter_forbidden
||-- part11-09_products_in_shopping_list
||-- part11-10_cheaper_properties
||-- part11-11_lengths_of_strings
||-- part11-12_most_common_words
||-- part11-13_add_numbers_to_list
||-- part11-14_recursive_sum
||-- part11-15_balanced_brackets
||-- part11-16_greatest_node
||-- part11-17_bosses_and_subordinates
||-- part11-18_order_book
||-- part11-19_order_book_application
||-- part12-01_remaining_stock
||-- part12-02_seasons
||-- part12-03_ratings
||-- part12-04_climbing_route
||-- part12-05_climbing_areas
||-- part12-06_ballplayers
||-- part12-07_product_search
||-- part12-08_even_numbers
||-- part12-09_prime_numbers
||-- part12-10_random_words
||-- part12-11_attempted_courses
||-- part12-12_filtering_attempts
||-- part12-13_credits
||-- part12-14_regular_expressions
||-- part12-15_hockey_statistics
||-- part13-01_four_robots
||-- part13-02_robots_row
||-- part13-03_hundred_robots
||-- part13-04_random_robots
||-- part13-05_vertical_movement
||-- part13-06_round_the_perimeter
||-- part13-07_two_robots
||-- part13-08_robot_circle
||-- part13-09_bouncing_ball
||-- part13-10_robot_invasion
||-- part13-11_four_directions
||-- part13-12_four_walls
||-- part13-13_two_players
||-- part13-14_robot_and_mouse
||-- part13-15_robot_location
||-- part13-16_clock
||-- part13-17_asteroids
|`-- part14-01_own_game`-- rage-programming-24-course-data

About

Exercises & notes from University of Helsinki's Python Programming MOOC 2024

Topics

Resources

Stars

12 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Strip utm_, fbclid, gclid, etc. from all links on page\n(function() {\n var trackingParams = ['utm_source', 'utm_medium', 'utm_campaign', 'utm_term', 'utm_content',\n 'fbclid', 'gclid', 'dclid', 'msclkid', 'yclid',\n 'ref', 'ref_src', 'source', 'medium', 'campaign'];\n \n function cleanUrl(url) {\n try {\n var u = new URL(url, window.location.origin);\n var changed = false;\n trackingParams.forEach(function(p) {\n if (u.searchParams.has(p)) {\n u.searchParams.delete(p);\n changed = true;\n }\n });\n return changed ? u.toString() : url;\n } catch (e) {\n return url;\n }\n }\n \n function cleanLinks() {\n document.querySelectorAll('a[href]').forEach(function(a) {\n var clean = cleanUrl(a.href);\n if (clean !== a.href) a.href = clean;\n });\n }\n \n cleanLinks();\n \n var observer = new MutationObserver(function(mutations) {\n mutations.forEach(function(m) {\n m.addedNodes.forEach(function(node) {\n if (node.nodeType === 1) {\n if (node.tagName === 'A') cleanLinks();\n node.querySelectorAll('a[href]').forEach(function(a) {\n var clean = cleanUrl(a.href);\n if (clean !== a.href) a.href = clean;\n });\n }\n });\n });\n });\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Remove Tracking Parameters from Links"); } } catch(__e) { console.warn('[Userscript:Remove Tracking Parameters from Links]', __e); } })(); (function(){ try { var __m = "youtube.com"; var __re = new RegExp('^' + "youtube\\.com" + '
Skip to content

Repository files navigation

Python Programming MOOC 2024

All my notes and solutions from the University of Helsinki's Python Programming MOOC 2024

The exercises and examples are entirely implemented in Python 3. There are no requirements for external packages and/or libraries, except for Part 13 and 14, which requires Pygame.

Please feel free to message me for any questions or suggestions.

References

Course Website: https://programming-24.mooc.fi/

Files

|-- 0 - Master Notes.md
|-- 1 - Pygame.md
|-- 0 - Introduction to Programming Notes
||-- Data-Files
||-- Intro To Programming Exam - 04-05-2024
|||-- Exam1.md
|||-- Notes
||||-- Exercise 1.py
||||-- Exercise 2 copy.py
||||-- Exercise 2.py
||||-- Exercise 3.py
||||-- statistics copy.txt
|||`-- statistics.txt||`-- Submissions
|||-- ValueErrors.txt
|||-- exercise1.py
|||-- exercise2.py
|||-- exercise3.py
||`-- statistics.txt||-- Part 1 - Arithmetic Operations.py||-- Part 1 - Conditional Statements.py||-- Part 1 - Prints & Inputs.py||-- Part 2 - More Conditionals.py||-- Part 2 - Simple Loops.py||-- Part 3 - Debugging Example.py||-- Part 3 - Defining Functions.py||-- Part 3 - Loops with Conditions.py||-- Part 3 - More Loops.py||-- Part 3 - Strings.py||-- Part 4 - Definite iteration.py||-- Part 4 - Developing a larger programming project.py||-- Part 4 - Grade Statistics - 2.py||-- Part 4 - Grade Statistics.py||-- Part 4 - Lists.py||-- Part 4 - More Functions.py||-- Part 4 - More strings and lists.py||-- Part 4 - Print statement formatting.py||-- Part 5 - Dictionary.py||-- Part 5 - More Lists and Matrix.py||-- Part 5 - References.py||-- Part 5 - Student database.py||-- Part 5 - Sudoku.py||-- Part 5 - Test.ipynb||-- Part 5 - Tuple.py||-- Part 6 - Handling errors.py||-- Part 6 - Reading Files.py||-- Part 6 - Writing files.py||-- Part 7 - Creating your own modules.py||-- Part 7 - Data processing.py||-- Part 7 - Modules.py||-- Part 7 - More Python features.py||-- Part 7 - Randomness.py||-- Part 7 - Times and dates.py|`-- string_helper.py
|-- 1 - Advanced Course in Programming Notes
||-- Advanced Course in Programming Exam - 15-06-2024
|||-- Exam.md
|||-- Exercise 1.py
|||-- Exercise 2.py
|||-- Exercise 3-1.py
|||-- Exercise 3.py
||`-- recipes.txt||-- Data-Files||-- Part 10 - Access modifiers.py||-- Part 10 - Class hierarchies.py||-- Part 10 - Developing a larger application.py||-- Part 10 - Object oriented programming techniques.py||-- Part 11 - List comprehensions.py||-- Part 11 - More comprehensions.py||-- Part 11 - More recursion examples.py||-- Part 11 - Recursion.py||-- Part 12 - Functional programming.py||-- Part 12 - Functions as arguments.py||-- Part 12 - Generators.py||-- Part 12 - Lambda Function Exercises.ipynb||-- Part 12 - Regular expressions.py||-- Part 13 - Animation.py||-- Part 13 - Events.py||-- Part 13 - More pygame techniques.py||-- Part 13 - Pygame.py||-- Part 14 - Finishing the game.py||-- Part 14 - Game project.py||-- Part 14 - Robot and boxes.py||-- Part 8 - Classes and objects.py||-- Part 8 - Defining classes.py||-- Part 8 - Defining methods.py||-- Part 8 - More examples of classes.py||-- Part 8 - Objects and methods.py||-- Part 9 - Class attributes.py||-- Part 9 - Encapsulation.py||-- Part 9 - More examples with classes.py||-- Part 9 - Objects and references.py||-- Part 9 - Objects as attributes.py|`-- Part 9 - Scope of methods.py
|-- Applications
||-- CoinPort
|||-- coin.png
|||-- door.png
|||-- game.py
|||-- monster.png
||`-- robot.png||-- CourseRecords Application||`-- main.py
||-- Hockey Statistics Application
|||-- all.json
|||-- hockey_statistics-v2.py
|||-- hockey_statistics.py
||`-- partial.json||-- Maze Generator|||-- Maze generation copy.py|||-- Maze generation.py||`-- maze.txt
||-- OrderBook Application
|||-- input.txt
|||-- input2.txt
|||-- input3.txt
|||-- main.py
||`-- test.py||-- Pacman||-- Part 9 - Objects as attributes - Example|||-- MainFunction.py|||-- completedcourse.py|||-- course.py||`-- student.py
||-- PhoneBook Application
|||-- main.py
|||-- main_expansion_v2.py
||`-- phonebook.txt||-- Rich The Robot|||-- coin.png|||-- door.png|||-- game.py|||-- monster.png||`-- robot.png
||-- Your-own-game
|||-- coin.png
|||-- door.png
|||-- game.py
|||-- monster.png
||`-- robot.png|`-- sokoban
||-- README.md
||-- sokoban-english.py
|-- Data-Files
|-- Images
|-- README.md
|-- Reference Notes
||-- Algorithms.py
||-- Angles in Pygame.py
||-- Comprehensions.py
||-- Primes
|||-- 10m_prime_sive.txt
|||-- 1m_prime_sive_v0.txt
|||-- Prime_Sieve_1.py
|||-- Prime_Sieve_2.py
|||-- Prime_Sieve_3.py
|||-- Prime_Sieve_4.py
|||-- Prime_Sieve_4a.py
|||-- Prime_Sieve_5py
|||-- Trial_Div_1.py
|||-- Trial_Div_2.py
||`-- solution_3|||-- Dockerfile|||-- PrimePY.py|||-- README.md||`-- tests
|||-- __init__.py
||`-- test_sieve.py|`-- f-string.py
|-- Slides
||-- Slides 1.pdf
||-- Slides 10.pdf
||-- Slides 11.pdf
||-- Slides 12.pdf
||-- Slides 2.pdf
||-- Slides 3.pdf
||-- Slides 4.pdf
||-- Slides 5.pdf
||-- Slides 6.pdf
||-- Slides 7.pdf
|`-- Slides 8.pdf|-- course-submission-files||-- hy-adv-course-in-prog-exam-15062024|||-- Exam15062024-Exercise1|||-- Exam15062024-Exercise2||`-- Exam15062024-Exercise3
||-- hy-intro-to-programming-exam-04052024
|||-- Exam04052024-Exercise1
|||-- Exam04052024-Exercise2
||`-- Exam04052024-Exercise3|`-- mooc-programming-24
||-- part01-01_emoticon
||-- part01-02_seven_brothers
||-- part01-03_row_your_boat
||-- part01-04_minutes_in_a_year
||-- part01-05_print_code
||-- part01-06_name_twice
||-- part01-07_name_and_exclamation_marks
||-- part01-08_name_and_address
||-- part01-09_utterances
||-- part01-10_story
||-- part01-10b_extra_space
||-- part01-11_arithmetics
||-- part01-12_print_a_single_line
||-- part01-13_times_five
||-- part01-14_name_and_age
||-- part01-15_seconds_in_a_day
||-- part01-16_product
||-- part01-17_sum_and_product
||-- part01-18_sum_and_mean
||-- part01-19_food_expenditure
||-- part01-20_students_in_groups
||-- part01-21_orwell
||-- part01-22_absolute_value
||-- part01-23_soup_or_no_soup
||-- part01-24_order_of_magnitude
||-- part01-25_calculator
||-- part01-26_temperatures
||-- part01-27_daily_wages
||-- part01-28_loyalty_bonus
||-- part01-29_what_to_wear_tomorrow
||-- part01-30_quadratic_formula
||-- part02-01_fix_syntax
||-- part02-02_number_of_characters
||-- part02-03_typecasting
||-- part02-04_age_of_maturity
||-- part02-05_greater_or_equal
||-- part02-06_elder
||-- part02-07_alphabetically_last
||-- part02-08_age_check
||-- part02-09_nephews
||-- part02-10_grades_and_points
||-- part02-11_fizzbuzz
||-- part02-12_leap_year
||-- part02-13_alphabetically_in_the_middle
||-- part02-14_gift_tax_calculator
||-- part02-15_shall_we_continue
||-- part02-16_input_validation
||-- part02-17_countdown
||-- part02-18_repeat_password
||-- part02-19_pin_and_number_of_attempts
||-- part02-20_next_leap_year
||-- part02-21_story
||-- part02-22_working_with_numbers
||-- part03-01_print_numbers
||-- part03-02_countdown
||-- part03-03_numbers
||-- part03-04_powers_of_two
||-- part03-05_powers_of_base_n
||-- part03-06_consecutive_sum_v1
||-- part03-07_consecutive_sum_v2
||-- part03-08_string_multiplied
||-- part03-09_longer_string
||-- part03-10_end_to_beginning
||-- part03-11_second_and_second_to_last
||-- part03-12_line_of_hashes
||-- part03-13_rectangle_of_hashes
||-- part03-14_underlining
||-- part03-15_right_aligned
||-- part03-16_framed_word
||-- part03-17_substrings_part_1
||-- part03-18_substrings_part_2
||-- part03-19_does_it_contain_vowels
||-- part03-20_find_first_substring
||-- part03-21_find_all_substrings
||-- part03-22_second_occurrence
||-- part03-23_multiplication
||-- part03-24_first_letters_of_words
||-- part03-25_factorial
||-- part03-26_flip_the_pairs
||-- part03-27_taking_turns
||-- part03-28_seven_brothers
||-- part03-29_first_character
||-- part03-30_mean
||-- part03-31_print_many_times
||-- part03-32_square_of_hashes
||-- part03-33_chessboard
||-- part03-34_word_squared
||-- part04-01_hello_visual_studio_code
||-- part04-02_line
||-- part04-03_box_of_hashes
||-- part04-04_square_of_hashes
||-- part04-05_square
||-- part04-06_triangle
||-- part04-07_shape
||-- part04-08_spruce
||-- part04-09_greatest_number
||-- part04-10_same_characters
||-- part04-11_first_second_last
||-- part04-12_change_value_of_item
||-- part04-13_add_items_to_list
||-- part04-14_addition_and_removal
||-- part04-15_same_word_twice
||-- part04-16_list_twice
||-- part04-17_length_of_list
||-- part04-18_mean
||-- part04-19_range_of_list
||-- part04-20_star_studded
||-- part04-21_negative_to_positive
||-- part04-22_list_of_stars
||-- part04-23_anagrams
||-- part04-24_palindromes
||-- part04-25_sum_of_positives
||-- part04-26_even_numbers
||-- part04-27_sum_of_lists
||-- part04-28_distinct_numbers
||-- part04-29_length_of_longest
||-- part04-30_shortest_in_list
||-- part04-31_all_longest_in_list
||-- part04-32_integers_to_strings
||-- part04-33_everything_reversed
||-- part04-34_most_common_character
||-- part04-35_no_vowels_allowed
||-- part04-36_no_shouting_allowed
||-- part04-37_neighbours_in_list
||-- part04-38_grade_statistics
||-- part05-01_longest_string
||-- part05-02_number_of_elements
||-- part05-03_go
||-- part05-04_sudoku_row
||-- part05-05_sudoku_column
||-- part05-06_sudoku_block
||-- part05-07_sudoku_grid
||-- part05-08_items_multiplied_by_two
||-- part05-09_remove_smallest
||-- part05-10_sudoku_print_and_add
||-- part05-11_sudoku_add_to_copy
||-- part05-12_tic_tac_toe
||-- part05-13_transpose_matrix
||-- part05-14_times_ten
||-- part05-15_factorials
||-- part05-16_histogram
||-- part05-17_phone_book_v1
||-- part05-18_phone_book_v2
||-- part05-19_invert_dictionary
||-- part05-20_numbers_spelled_out
||-- part05-21_movie_database
||-- part05-22_find_movies
||-- part05-23_create_tuple
||-- part05-24_oldest_person
||-- part05-25_older_people
||-- part05-26_student_database
||-- part05-27_letter_square
||-- part06-01_largest_number
||-- part06-02_fruit_market
||-- part06-03_matrix
||-- part06-04_course_grading_part_1
||-- part06-05_course_grading_part_2
||-- part06-06_course_grading_part_3
||-- part06-07_spellchecker
||-- part06-08_recipe_search
||-- part06-09_city_bikes
||-- part06-10_inscription
||-- part06-11_diary
||-- part06-12_filtering_file_contents
||-- part06-13_store_personal_data
||-- part06-14_course_grading_part_4
||-- part06-15_word_search
||-- part06-16_dictionary_file
||-- part06-17_read_input
||-- part06-18_parameter_validation
||-- part06-19_incorrect_lottery_numbers
||-- part07-01_hypotenuse
||-- part07-02_special_characters
||-- part07-03_fractions
||-- part07-04_lottery_numbers
||-- part07-05_password_generator_part_1
||-- part07-06_password_generator_part_2
||-- part07-07_dice_roller
||-- part07-08_random_words
||-- part07-09_how_old
||-- part07-10_valid_pic
||-- part07-11_screen_time
||-- part07-12_json_files
||-- part07-13_course_statistics
||-- part07-14_who_cheated
||-- part07-15_who_cheated_2
||-- part07-16_spellchecker_2
||-- part07-17_string_helper
||-- part07-18_own_programming_language
||-- part08-01_smallest_average
||-- part08-02_row_sums
||-- part08-03_list_years
||-- part08-04_shopping_list
||-- part08-05_book
||-- part08-06_three_classes
||-- part08-07_pet
||-- part08-08_older_book
||-- part08-09_books_of_genre
||-- part08-10_decreasing_counter
||-- part08-11_first_and_last_name
||-- part08-12_number_stats
||-- part08-13_stopwatch
||-- part08-14_clock
||-- part08-15_lunchcard
||-- part08-16_series
||-- part09-01_fastest_car
||-- part09-02_passing_submissions
||-- part09-03_baby_centre
||-- part09-04_lunchcard_and_paymentterminal
||-- part09-05_comparing_properties
||-- part09-06_pets
||-- part09-07_box_of_presents
||-- part09-08_shortest_in_room
||-- part09-09_car
||-- part09-10_recording
||-- part09-11_weather_station
||-- part09-12_service_charge
||-- part09-13_postcodes
||-- part09-14_list_helper
||-- part09-15_item_suitcase_hold
||-- part10-01_laptop_computer
||-- part10-02_game_museum
||-- part10-03_areas
||-- part10-04_word_game
||-- part10-05_supergroup
||-- part10-06_secret_magic_potion
||-- part10-07_money
||-- part10-08_simple_date
||-- part10-09_iterable_shopping_list
||-- part10-10_phone_book_v1
||-- part10-11_phone_book_v2
||-- part10-12_course_records
||-- part11-01_square_roots
||-- part11-02_rows_of_stars
||-- part11-03_best_exam_result
||-- part11-04_lengths
||-- part11-05_remove_smaller_than
||-- part11-06_begin_with_vowel
||-- part11-07_lottery_numbers
||-- part11-08_filter_forbidden
||-- part11-09_products_in_shopping_list
||-- part11-10_cheaper_properties
||-- part11-11_lengths_of_strings
||-- part11-12_most_common_words
||-- part11-13_add_numbers_to_list
||-- part11-14_recursive_sum
||-- part11-15_balanced_brackets
||-- part11-16_greatest_node
||-- part11-17_bosses_and_subordinates
||-- part11-18_order_book
||-- part11-19_order_book_application
||-- part12-01_remaining_stock
||-- part12-02_seasons
||-- part12-03_ratings
||-- part12-04_climbing_route
||-- part12-05_climbing_areas
||-- part12-06_ballplayers
||-- part12-07_product_search
||-- part12-08_even_numbers
||-- part12-09_prime_numbers
||-- part12-10_random_words
||-- part12-11_attempted_courses
||-- part12-12_filtering_attempts
||-- part12-13_credits
||-- part12-14_regular_expressions
||-- part12-15_hockey_statistics
||-- part13-01_four_robots
||-- part13-02_robots_row
||-- part13-03_hundred_robots
||-- part13-04_random_robots
||-- part13-05_vertical_movement
||-- part13-06_round_the_perimeter
||-- part13-07_two_robots
||-- part13-08_robot_circle
||-- part13-09_bouncing_ball
||-- part13-10_robot_invasion
||-- part13-11_four_directions
||-- part13-12_four_walls
||-- part13-13_two_players
||-- part13-14_robot_and_mouse
||-- part13-15_robot_location
||-- part13-16_clock
||-- part13-17_asteroids
|`-- part14-01_own_game`-- rage-programming-24-course-data

About

Exercises & notes from University of Helsinki's Python Programming MOOC 2024

Topics

Resources

Stars

12 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Auto-enable theater mode on YouTube\n(function() {\n function tryTheater() {\n var btn = document.querySelector('button[aria-label=\"Theater mode\"], ytd-player #player button[title=\"Theater mode\"]');\n if (btn && !btn.classList.contains('activated')) {\n btn.click();\n }\n }\n \n // Try immediately\n tryTheater();\n \n // Try after navigation (SPA)\n var lastUrl = location.href;\n setInterval(function() {\n if (location.href !== lastUrl) {\n lastUrl = location.href;\n setTimeout(tryTheater, 500);\n }\n }, 1000);\n \n // Also try on player load\n var observer = new MutationObserver(tryTheater);\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "YouTube Theater Mode Default"); } } catch(__e) { console.warn('[Userscript:YouTube Theater Mode Default]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Repository files navigation

Python Programming MOOC 2024

All my notes and solutions from the University of Helsinki's Python Programming MOOC 2024

The exercises and examples are entirely implemented in Python 3. There are no requirements for external packages and/or libraries, except for Part 13 and 14, which requires Pygame.

Please feel free to message me for any questions or suggestions.

References

Course Website: https://programming-24.mooc.fi/

Files

|-- 0 - Master Notes.md
|-- 1 - Pygame.md
|-- 0 - Introduction to Programming Notes
||-- Data-Files
||-- Intro To Programming Exam - 04-05-2024
|||-- Exam1.md
|||-- Notes
||||-- Exercise 1.py
||||-- Exercise 2 copy.py
||||-- Exercise 2.py
||||-- Exercise 3.py
||||-- statistics copy.txt
|||`-- statistics.txt||`-- Submissions
|||-- ValueErrors.txt
|||-- exercise1.py
|||-- exercise2.py
|||-- exercise3.py
||`-- statistics.txt||-- Part 1 - Arithmetic Operations.py||-- Part 1 - Conditional Statements.py||-- Part 1 - Prints & Inputs.py||-- Part 2 - More Conditionals.py||-- Part 2 - Simple Loops.py||-- Part 3 - Debugging Example.py||-- Part 3 - Defining Functions.py||-- Part 3 - Loops with Conditions.py||-- Part 3 - More Loops.py||-- Part 3 - Strings.py||-- Part 4 - Definite iteration.py||-- Part 4 - Developing a larger programming project.py||-- Part 4 - Grade Statistics - 2.py||-- Part 4 - Grade Statistics.py||-- Part 4 - Lists.py||-- Part 4 - More Functions.py||-- Part 4 - More strings and lists.py||-- Part 4 - Print statement formatting.py||-- Part 5 - Dictionary.py||-- Part 5 - More Lists and Matrix.py||-- Part 5 - References.py||-- Part 5 - Student database.py||-- Part 5 - Sudoku.py||-- Part 5 - Test.ipynb||-- Part 5 - Tuple.py||-- Part 6 - Handling errors.py||-- Part 6 - Reading Files.py||-- Part 6 - Writing files.py||-- Part 7 - Creating your own modules.py||-- Part 7 - Data processing.py||-- Part 7 - Modules.py||-- Part 7 - More Python features.py||-- Part 7 - Randomness.py||-- Part 7 - Times and dates.py|`-- string_helper.py
|-- 1 - Advanced Course in Programming Notes
||-- Advanced Course in Programming Exam - 15-06-2024
|||-- Exam.md
|||-- Exercise 1.py
|||-- Exercise 2.py
|||-- Exercise 3-1.py
|||-- Exercise 3.py
||`-- recipes.txt||-- Data-Files||-- Part 10 - Access modifiers.py||-- Part 10 - Class hierarchies.py||-- Part 10 - Developing a larger application.py||-- Part 10 - Object oriented programming techniques.py||-- Part 11 - List comprehensions.py||-- Part 11 - More comprehensions.py||-- Part 11 - More recursion examples.py||-- Part 11 - Recursion.py||-- Part 12 - Functional programming.py||-- Part 12 - Functions as arguments.py||-- Part 12 - Generators.py||-- Part 12 - Lambda Function Exercises.ipynb||-- Part 12 - Regular expressions.py||-- Part 13 - Animation.py||-- Part 13 - Events.py||-- Part 13 - More pygame techniques.py||-- Part 13 - Pygame.py||-- Part 14 - Finishing the game.py||-- Part 14 - Game project.py||-- Part 14 - Robot and boxes.py||-- Part 8 - Classes and objects.py||-- Part 8 - Defining classes.py||-- Part 8 - Defining methods.py||-- Part 8 - More examples of classes.py||-- Part 8 - Objects and methods.py||-- Part 9 - Class attributes.py||-- Part 9 - Encapsulation.py||-- Part 9 - More examples with classes.py||-- Part 9 - Objects and references.py||-- Part 9 - Objects as attributes.py|`-- Part 9 - Scope of methods.py
|-- Applications
||-- CoinPort
|||-- coin.png
|||-- door.png
|||-- game.py
|||-- monster.png
||`-- robot.png||-- CourseRecords Application||`-- main.py
||-- Hockey Statistics Application
|||-- all.json
|||-- hockey_statistics-v2.py
|||-- hockey_statistics.py
||`-- partial.json||-- Maze Generator|||-- Maze generation copy.py|||-- Maze generation.py||`-- maze.txt
||-- OrderBook Application
|||-- input.txt
|||-- input2.txt
|||-- input3.txt
|||-- main.py
||`-- test.py||-- Pacman||-- Part 9 - Objects as attributes - Example|||-- MainFunction.py|||-- completedcourse.py|||-- course.py||`-- student.py
||-- PhoneBook Application
|||-- main.py
|||-- main_expansion_v2.py
||`-- phonebook.txt||-- Rich The Robot|||-- coin.png|||-- door.png|||-- game.py|||-- monster.png||`-- robot.png
||-- Your-own-game
|||-- coin.png
|||-- door.png
|||-- game.py
|||-- monster.png
||`-- robot.png|`-- sokoban
||-- README.md
||-- sokoban-english.py
|-- Data-Files
|-- Images
|-- README.md
|-- Reference Notes
||-- Algorithms.py
||-- Angles in Pygame.py
||-- Comprehensions.py
||-- Primes
|||-- 10m_prime_sive.txt
|||-- 1m_prime_sive_v0.txt
|||-- Prime_Sieve_1.py
|||-- Prime_Sieve_2.py
|||-- Prime_Sieve_3.py
|||-- Prime_Sieve_4.py
|||-- Prime_Sieve_4a.py
|||-- Prime_Sieve_5py
|||-- Trial_Div_1.py
|||-- Trial_Div_2.py
||`-- solution_3|||-- Dockerfile|||-- PrimePY.py|||-- README.md||`-- tests
|||-- __init__.py
||`-- test_sieve.py|`-- f-string.py
|-- Slides
||-- Slides 1.pdf
||-- Slides 10.pdf
||-- Slides 11.pdf
||-- Slides 12.pdf
||-- Slides 2.pdf
||-- Slides 3.pdf
||-- Slides 4.pdf
||-- Slides 5.pdf
||-- Slides 6.pdf
||-- Slides 7.pdf
|`-- Slides 8.pdf|-- course-submission-files||-- hy-adv-course-in-prog-exam-15062024|||-- Exam15062024-Exercise1|||-- Exam15062024-Exercise2||`-- Exam15062024-Exercise3
||-- hy-intro-to-programming-exam-04052024
|||-- Exam04052024-Exercise1
|||-- Exam04052024-Exercise2
||`-- Exam04052024-Exercise3|`-- mooc-programming-24
||-- part01-01_emoticon
||-- part01-02_seven_brothers
||-- part01-03_row_your_boat
||-- part01-04_minutes_in_a_year
||-- part01-05_print_code
||-- part01-06_name_twice
||-- part01-07_name_and_exclamation_marks
||-- part01-08_name_and_address
||-- part01-09_utterances
||-- part01-10_story
||-- part01-10b_extra_space
||-- part01-11_arithmetics
||-- part01-12_print_a_single_line
||-- part01-13_times_five
||-- part01-14_name_and_age
||-- part01-15_seconds_in_a_day
||-- part01-16_product
||-- part01-17_sum_and_product
||-- part01-18_sum_and_mean
||-- part01-19_food_expenditure
||-- part01-20_students_in_groups
||-- part01-21_orwell
||-- part01-22_absolute_value
||-- part01-23_soup_or_no_soup
||-- part01-24_order_of_magnitude
||-- part01-25_calculator
||-- part01-26_temperatures
||-- part01-27_daily_wages
||-- part01-28_loyalty_bonus
||-- part01-29_what_to_wear_tomorrow
||-- part01-30_quadratic_formula
||-- part02-01_fix_syntax
||-- part02-02_number_of_characters
||-- part02-03_typecasting
||-- part02-04_age_of_maturity
||-- part02-05_greater_or_equal
||-- part02-06_elder
||-- part02-07_alphabetically_last
||-- part02-08_age_check
||-- part02-09_nephews
||-- part02-10_grades_and_points
||-- part02-11_fizzbuzz
||-- part02-12_leap_year
||-- part02-13_alphabetically_in_the_middle
||-- part02-14_gift_tax_calculator
||-- part02-15_shall_we_continue
||-- part02-16_input_validation
||-- part02-17_countdown
||-- part02-18_repeat_password
||-- part02-19_pin_and_number_of_attempts
||-- part02-20_next_leap_year
||-- part02-21_story
||-- part02-22_working_with_numbers
||-- part03-01_print_numbers
||-- part03-02_countdown
||-- part03-03_numbers
||-- part03-04_powers_of_two
||-- part03-05_powers_of_base_n
||-- part03-06_consecutive_sum_v1
||-- part03-07_consecutive_sum_v2
||-- part03-08_string_multiplied
||-- part03-09_longer_string
||-- part03-10_end_to_beginning
||-- part03-11_second_and_second_to_last
||-- part03-12_line_of_hashes
||-- part03-13_rectangle_of_hashes
||-- part03-14_underlining
||-- part03-15_right_aligned
||-- part03-16_framed_word
||-- part03-17_substrings_part_1
||-- part03-18_substrings_part_2
||-- part03-19_does_it_contain_vowels
||-- part03-20_find_first_substring
||-- part03-21_find_all_substrings
||-- part03-22_second_occurrence
||-- part03-23_multiplication
||-- part03-24_first_letters_of_words
||-- part03-25_factorial
||-- part03-26_flip_the_pairs
||-- part03-27_taking_turns
||-- part03-28_seven_brothers
||-- part03-29_first_character
||-- part03-30_mean
||-- part03-31_print_many_times
||-- part03-32_square_of_hashes
||-- part03-33_chessboard
||-- part03-34_word_squared
||-- part04-01_hello_visual_studio_code
||-- part04-02_line
||-- part04-03_box_of_hashes
||-- part04-04_square_of_hashes
||-- part04-05_square
||-- part04-06_triangle
||-- part04-07_shape
||-- part04-08_spruce
||-- part04-09_greatest_number
||-- part04-10_same_characters
||-- part04-11_first_second_last
||-- part04-12_change_value_of_item
||-- part04-13_add_items_to_list
||-- part04-14_addition_and_removal
||-- part04-15_same_word_twice
||-- part04-16_list_twice
||-- part04-17_length_of_list
||-- part04-18_mean
||-- part04-19_range_of_list
||-- part04-20_star_studded
||-- part04-21_negative_to_positive
||-- part04-22_list_of_stars
||-- part04-23_anagrams
||-- part04-24_palindromes
||-- part04-25_sum_of_positives
||-- part04-26_even_numbers
||-- part04-27_sum_of_lists
||-- part04-28_distinct_numbers
||-- part04-29_length_of_longest
||-- part04-30_shortest_in_list
||-- part04-31_all_longest_in_list
||-- part04-32_integers_to_strings
||-- part04-33_everything_reversed
||-- part04-34_most_common_character
||-- part04-35_no_vowels_allowed
||-- part04-36_no_shouting_allowed
||-- part04-37_neighbours_in_list
||-- part04-38_grade_statistics
||-- part05-01_longest_string
||-- part05-02_number_of_elements
||-- part05-03_go
||-- part05-04_sudoku_row
||-- part05-05_sudoku_column
||-- part05-06_sudoku_block
||-- part05-07_sudoku_grid
||-- part05-08_items_multiplied_by_two
||-- part05-09_remove_smallest
||-- part05-10_sudoku_print_and_add
||-- part05-11_sudoku_add_to_copy
||-- part05-12_tic_tac_toe
||-- part05-13_transpose_matrix
||-- part05-14_times_ten
||-- part05-15_factorials
||-- part05-16_histogram
||-- part05-17_phone_book_v1
||-- part05-18_phone_book_v2
||-- part05-19_invert_dictionary
||-- part05-20_numbers_spelled_out
||-- part05-21_movie_database
||-- part05-22_find_movies
||-- part05-23_create_tuple
||-- part05-24_oldest_person
||-- part05-25_older_people
||-- part05-26_student_database
||-- part05-27_letter_square
||-- part06-01_largest_number
||-- part06-02_fruit_market
||-- part06-03_matrix
||-- part06-04_course_grading_part_1
||-- part06-05_course_grading_part_2
||-- part06-06_course_grading_part_3
||-- part06-07_spellchecker
||-- part06-08_recipe_search
||-- part06-09_city_bikes
||-- part06-10_inscription
||-- part06-11_diary
||-- part06-12_filtering_file_contents
||-- part06-13_store_personal_data
||-- part06-14_course_grading_part_4
||-- part06-15_word_search
||-- part06-16_dictionary_file
||-- part06-17_read_input
||-- part06-18_parameter_validation
||-- part06-19_incorrect_lottery_numbers
||-- part07-01_hypotenuse
||-- part07-02_special_characters
||-- part07-03_fractions
||-- part07-04_lottery_numbers
||-- part07-05_password_generator_part_1
||-- part07-06_password_generator_part_2
||-- part07-07_dice_roller
||-- part07-08_random_words
||-- part07-09_how_old
||-- part07-10_valid_pic
||-- part07-11_screen_time
||-- part07-12_json_files
||-- part07-13_course_statistics
||-- part07-14_who_cheated
||-- part07-15_who_cheated_2
||-- part07-16_spellchecker_2
||-- part07-17_string_helper
||-- part07-18_own_programming_language
||-- part08-01_smallest_average
||-- part08-02_row_sums
||-- part08-03_list_years
||-- part08-04_shopping_list
||-- part08-05_book
||-- part08-06_three_classes
||-- part08-07_pet
||-- part08-08_older_book
||-- part08-09_books_of_genre
||-- part08-10_decreasing_counter
||-- part08-11_first_and_last_name
||-- part08-12_number_stats
||-- part08-13_stopwatch
||-- part08-14_clock
||-- part08-15_lunchcard
||-- part08-16_series
||-- part09-01_fastest_car
||-- part09-02_passing_submissions
||-- part09-03_baby_centre
||-- part09-04_lunchcard_and_paymentterminal
||-- part09-05_comparing_properties
||-- part09-06_pets
||-- part09-07_box_of_presents
||-- part09-08_shortest_in_room
||-- part09-09_car
||-- part09-10_recording
||-- part09-11_weather_station
||-- part09-12_service_charge
||-- part09-13_postcodes
||-- part09-14_list_helper
||-- part09-15_item_suitcase_hold
||-- part10-01_laptop_computer
||-- part10-02_game_museum
||-- part10-03_areas
||-- part10-04_word_game
||-- part10-05_supergroup
||-- part10-06_secret_magic_potion
||-- part10-07_money
||-- part10-08_simple_date
||-- part10-09_iterable_shopping_list
||-- part10-10_phone_book_v1
||-- part10-11_phone_book_v2
||-- part10-12_course_records
||-- part11-01_square_roots
||-- part11-02_rows_of_stars
||-- part11-03_best_exam_result
||-- part11-04_lengths
||-- part11-05_remove_smaller_than
||-- part11-06_begin_with_vowel
||-- part11-07_lottery_numbers
||-- part11-08_filter_forbidden
||-- part11-09_products_in_shopping_list
||-- part11-10_cheaper_properties
||-- part11-11_lengths_of_strings
||-- part11-12_most_common_words
||-- part11-13_add_numbers_to_list
||-- part11-14_recursive_sum
||-- part11-15_balanced_brackets
||-- part11-16_greatest_node
||-- part11-17_bosses_and_subordinates
||-- part11-18_order_book
||-- part11-19_order_book_application
||-- part12-01_remaining_stock
||-- part12-02_seasons
||-- part12-03_ratings
||-- part12-04_climbing_route
||-- part12-05_climbing_areas
||-- part12-06_ballplayers
||-- part12-07_product_search
||-- part12-08_even_numbers
||-- part12-09_prime_numbers
||-- part12-10_random_words
||-- part12-11_attempted_courses
||-- part12-12_filtering_attempts
||-- part12-13_credits
||-- part12-14_regular_expressions
||-- part12-15_hockey_statistics
||-- part13-01_four_robots
||-- part13-02_robots_row
||-- part13-03_hundred_robots
||-- part13-04_random_robots
||-- part13-05_vertical_movement
||-- part13-06_round_the_perimeter
||-- part13-07_two_robots
||-- part13-08_robot_circle
||-- part13-09_bouncing_ball
||-- part13-10_robot_invasion
||-- part13-11_four_directions
||-- part13-12_four_walls
||-- part13-13_two_players
||-- part13-14_robot_and_mouse
||-- part13-15_robot_location
||-- part13-16_clock
||-- part13-17_asteroids
|`-- part14-01_own_game`-- rage-programming-24-course-data

About

Exercises & notes from University of Helsinki's Python Programming MOOC 2024

Topics

Resources

Stars

12 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Remove or un-stick sticky/fixed headers that block content\n(function() {\n function unstick() {\n document.querySelectorAll('header, nav, [role=\"banner\"], .header, .navbar, .sticky, .fixed-top, [style*=\"position: fixed\"], [style*=\"position:sticky\"]').forEach(function(el) {\n if (el.style.position === 'fixed' || el.style.position === 'sticky' || \n getComputedStyle(el).position === 'fixed' || getComputedStyle(el).position === 'sticky') {\n el.style.position = 'static';\n el.style.top = 'auto';\n el.style.zIndex = 'auto';\n }\n });\n }\n \n unstick();\n \n var observer = new MutationObserver(unstick);\n observer.observe(document.body, { childList: true, subtree: true, attributes: true, attributeFilter: ['style', 'class'] });\n})();", "Kill Sticky Headers"); } } catch(__e) { console.warn('[Userscript:Kill Sticky Headers]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Repository files navigation

Python Programming MOOC 2024

All my notes and solutions from the University of Helsinki's Python Programming MOOC 2024

The exercises and examples are entirely implemented in Python 3. There are no requirements for external packages and/or libraries, except for Part 13 and 14, which requires Pygame.

Please feel free to message me for any questions or suggestions.

References

Course Website: https://programming-24.mooc.fi/

Files

|-- 0 - Master Notes.md
|-- 1 - Pygame.md
|-- 0 - Introduction to Programming Notes
||-- Data-Files
||-- Intro To Programming Exam - 04-05-2024
|||-- Exam1.md
|||-- Notes
||||-- Exercise 1.py
||||-- Exercise 2 copy.py
||||-- Exercise 2.py
||||-- Exercise 3.py
||||-- statistics copy.txt
|||`-- statistics.txt||`-- Submissions
|||-- ValueErrors.txt
|||-- exercise1.py
|||-- exercise2.py
|||-- exercise3.py
||`-- statistics.txt||-- Part 1 - Arithmetic Operations.py||-- Part 1 - Conditional Statements.py||-- Part 1 - Prints & Inputs.py||-- Part 2 - More Conditionals.py||-- Part 2 - Simple Loops.py||-- Part 3 - Debugging Example.py||-- Part 3 - Defining Functions.py||-- Part 3 - Loops with Conditions.py||-- Part 3 - More Loops.py||-- Part 3 - Strings.py||-- Part 4 - Definite iteration.py||-- Part 4 - Developing a larger programming project.py||-- Part 4 - Grade Statistics - 2.py||-- Part 4 - Grade Statistics.py||-- Part 4 - Lists.py||-- Part 4 - More Functions.py||-- Part 4 - More strings and lists.py||-- Part 4 - Print statement formatting.py||-- Part 5 - Dictionary.py||-- Part 5 - More Lists and Matrix.py||-- Part 5 - References.py||-- Part 5 - Student database.py||-- Part 5 - Sudoku.py||-- Part 5 - Test.ipynb||-- Part 5 - Tuple.py||-- Part 6 - Handling errors.py||-- Part 6 - Reading Files.py||-- Part 6 - Writing files.py||-- Part 7 - Creating your own modules.py||-- Part 7 - Data processing.py||-- Part 7 - Modules.py||-- Part 7 - More Python features.py||-- Part 7 - Randomness.py||-- Part 7 - Times and dates.py|`-- string_helper.py
|-- 1 - Advanced Course in Programming Notes
||-- Advanced Course in Programming Exam - 15-06-2024
|||-- Exam.md
|||-- Exercise 1.py
|||-- Exercise 2.py
|||-- Exercise 3-1.py
|||-- Exercise 3.py
||`-- recipes.txt||-- Data-Files||-- Part 10 - Access modifiers.py||-- Part 10 - Class hierarchies.py||-- Part 10 - Developing a larger application.py||-- Part 10 - Object oriented programming techniques.py||-- Part 11 - List comprehensions.py||-- Part 11 - More comprehensions.py||-- Part 11 - More recursion examples.py||-- Part 11 - Recursion.py||-- Part 12 - Functional programming.py||-- Part 12 - Functions as arguments.py||-- Part 12 - Generators.py||-- Part 12 - Lambda Function Exercises.ipynb||-- Part 12 - Regular expressions.py||-- Part 13 - Animation.py||-- Part 13 - Events.py||-- Part 13 - More pygame techniques.py||-- Part 13 - Pygame.py||-- Part 14 - Finishing the game.py||-- Part 14 - Game project.py||-- Part 14 - Robot and boxes.py||-- Part 8 - Classes and objects.py||-- Part 8 - Defining classes.py||-- Part 8 - Defining methods.py||-- Part 8 - More examples of classes.py||-- Part 8 - Objects and methods.py||-- Part 9 - Class attributes.py||-- Part 9 - Encapsulation.py||-- Part 9 - More examples with classes.py||-- Part 9 - Objects and references.py||-- Part 9 - Objects as attributes.py|`-- Part 9 - Scope of methods.py
|-- Applications
||-- CoinPort
|||-- coin.png
|||-- door.png
|||-- game.py
|||-- monster.png
||`-- robot.png||-- CourseRecords Application||`-- main.py
||-- Hockey Statistics Application
|||-- all.json
|||-- hockey_statistics-v2.py
|||-- hockey_statistics.py
||`-- partial.json||-- Maze Generator|||-- Maze generation copy.py|||-- Maze generation.py||`-- maze.txt
||-- OrderBook Application
|||-- input.txt
|||-- input2.txt
|||-- input3.txt
|||-- main.py
||`-- test.py||-- Pacman||-- Part 9 - Objects as attributes - Example|||-- MainFunction.py|||-- completedcourse.py|||-- course.py||`-- student.py
||-- PhoneBook Application
|||-- main.py
|||-- main_expansion_v2.py
||`-- phonebook.txt||-- Rich The Robot|||-- coin.png|||-- door.png|||-- game.py|||-- monster.png||`-- robot.png
||-- Your-own-game
|||-- coin.png
|||-- door.png
|||-- game.py
|||-- monster.png
||`-- robot.png|`-- sokoban
||-- README.md
||-- sokoban-english.py
|-- Data-Files
|-- Images
|-- README.md
|-- Reference Notes
||-- Algorithms.py
||-- Angles in Pygame.py
||-- Comprehensions.py
||-- Primes
|||-- 10m_prime_sive.txt
|||-- 1m_prime_sive_v0.txt
|||-- Prime_Sieve_1.py
|||-- Prime_Sieve_2.py
|||-- Prime_Sieve_3.py
|||-- Prime_Sieve_4.py
|||-- Prime_Sieve_4a.py
|||-- Prime_Sieve_5py
|||-- Trial_Div_1.py
|||-- Trial_Div_2.py
||`-- solution_3|||-- Dockerfile|||-- PrimePY.py|||-- README.md||`-- tests
|||-- __init__.py
||`-- test_sieve.py|`-- f-string.py
|-- Slides
||-- Slides 1.pdf
||-- Slides 10.pdf
||-- Slides 11.pdf
||-- Slides 12.pdf
||-- Slides 2.pdf
||-- Slides 3.pdf
||-- Slides 4.pdf
||-- Slides 5.pdf
||-- Slides 6.pdf
||-- Slides 7.pdf
|`-- Slides 8.pdf|-- course-submission-files||-- hy-adv-course-in-prog-exam-15062024|||-- Exam15062024-Exercise1|||-- Exam15062024-Exercise2||`-- Exam15062024-Exercise3
||-- hy-intro-to-programming-exam-04052024
|||-- Exam04052024-Exercise1
|||-- Exam04052024-Exercise2
||`-- Exam04052024-Exercise3|`-- mooc-programming-24
||-- part01-01_emoticon
||-- part01-02_seven_brothers
||-- part01-03_row_your_boat
||-- part01-04_minutes_in_a_year
||-- part01-05_print_code
||-- part01-06_name_twice
||-- part01-07_name_and_exclamation_marks
||-- part01-08_name_and_address
||-- part01-09_utterances
||-- part01-10_story
||-- part01-10b_extra_space
||-- part01-11_arithmetics
||-- part01-12_print_a_single_line
||-- part01-13_times_five
||-- part01-14_name_and_age
||-- part01-15_seconds_in_a_day
||-- part01-16_product
||-- part01-17_sum_and_product
||-- part01-18_sum_and_mean
||-- part01-19_food_expenditure
||-- part01-20_students_in_groups
||-- part01-21_orwell
||-- part01-22_absolute_value
||-- part01-23_soup_or_no_soup
||-- part01-24_order_of_magnitude
||-- part01-25_calculator
||-- part01-26_temperatures
||-- part01-27_daily_wages
||-- part01-28_loyalty_bonus
||-- part01-29_what_to_wear_tomorrow
||-- part01-30_quadratic_formula
||-- part02-01_fix_syntax
||-- part02-02_number_of_characters
||-- part02-03_typecasting
||-- part02-04_age_of_maturity
||-- part02-05_greater_or_equal
||-- part02-06_elder
||-- part02-07_alphabetically_last
||-- part02-08_age_check
||-- part02-09_nephews
||-- part02-10_grades_and_points
||-- part02-11_fizzbuzz
||-- part02-12_leap_year
||-- part02-13_alphabetically_in_the_middle
||-- part02-14_gift_tax_calculator
||-- part02-15_shall_we_continue
||-- part02-16_input_validation
||-- part02-17_countdown
||-- part02-18_repeat_password
||-- part02-19_pin_and_number_of_attempts
||-- part02-20_next_leap_year
||-- part02-21_story
||-- part02-22_working_with_numbers
||-- part03-01_print_numbers
||-- part03-02_countdown
||-- part03-03_numbers
||-- part03-04_powers_of_two
||-- part03-05_powers_of_base_n
||-- part03-06_consecutive_sum_v1
||-- part03-07_consecutive_sum_v2
||-- part03-08_string_multiplied
||-- part03-09_longer_string
||-- part03-10_end_to_beginning
||-- part03-11_second_and_second_to_last
||-- part03-12_line_of_hashes
||-- part03-13_rectangle_of_hashes
||-- part03-14_underlining
||-- part03-15_right_aligned
||-- part03-16_framed_word
||-- part03-17_substrings_part_1
||-- part03-18_substrings_part_2
||-- part03-19_does_it_contain_vowels
||-- part03-20_find_first_substring
||-- part03-21_find_all_substrings
||-- part03-22_second_occurrence
||-- part03-23_multiplication
||-- part03-24_first_letters_of_words
||-- part03-25_factorial
||-- part03-26_flip_the_pairs
||-- part03-27_taking_turns
||-- part03-28_seven_brothers
||-- part03-29_first_character
||-- part03-30_mean
||-- part03-31_print_many_times
||-- part03-32_square_of_hashes
||-- part03-33_chessboard
||-- part03-34_word_squared
||-- part04-01_hello_visual_studio_code
||-- part04-02_line
||-- part04-03_box_of_hashes
||-- part04-04_square_of_hashes
||-- part04-05_square
||-- part04-06_triangle
||-- part04-07_shape
||-- part04-08_spruce
||-- part04-09_greatest_number
||-- part04-10_same_characters
||-- part04-11_first_second_last
||-- part04-12_change_value_of_item
||-- part04-13_add_items_to_list
||-- part04-14_addition_and_removal
||-- part04-15_same_word_twice
||-- part04-16_list_twice
||-- part04-17_length_of_list
||-- part04-18_mean
||-- part04-19_range_of_list
||-- part04-20_star_studded
||-- part04-21_negative_to_positive
||-- part04-22_list_of_stars
||-- part04-23_anagrams
||-- part04-24_palindromes
||-- part04-25_sum_of_positives
||-- part04-26_even_numbers
||-- part04-27_sum_of_lists
||-- part04-28_distinct_numbers
||-- part04-29_length_of_longest
||-- part04-30_shortest_in_list
||-- part04-31_all_longest_in_list
||-- part04-32_integers_to_strings
||-- part04-33_everything_reversed
||-- part04-34_most_common_character
||-- part04-35_no_vowels_allowed
||-- part04-36_no_shouting_allowed
||-- part04-37_neighbours_in_list
||-- part04-38_grade_statistics
||-- part05-01_longest_string
||-- part05-02_number_of_elements
||-- part05-03_go
||-- part05-04_sudoku_row
||-- part05-05_sudoku_column
||-- part05-06_sudoku_block
||-- part05-07_sudoku_grid
||-- part05-08_items_multiplied_by_two
||-- part05-09_remove_smallest
||-- part05-10_sudoku_print_and_add
||-- part05-11_sudoku_add_to_copy
||-- part05-12_tic_tac_toe
||-- part05-13_transpose_matrix
||-- part05-14_times_ten
||-- part05-15_factorials
||-- part05-16_histogram
||-- part05-17_phone_book_v1
||-- part05-18_phone_book_v2
||-- part05-19_invert_dictionary
||-- part05-20_numbers_spelled_out
||-- part05-21_movie_database
||-- part05-22_find_movies
||-- part05-23_create_tuple
||-- part05-24_oldest_person
||-- part05-25_older_people
||-- part05-26_student_database
||-- part05-27_letter_square
||-- part06-01_largest_number
||-- part06-02_fruit_market
||-- part06-03_matrix
||-- part06-04_course_grading_part_1
||-- part06-05_course_grading_part_2
||-- part06-06_course_grading_part_3
||-- part06-07_spellchecker
||-- part06-08_recipe_search
||-- part06-09_city_bikes
||-- part06-10_inscription
||-- part06-11_diary
||-- part06-12_filtering_file_contents
||-- part06-13_store_personal_data
||-- part06-14_course_grading_part_4
||-- part06-15_word_search
||-- part06-16_dictionary_file
||-- part06-17_read_input
||-- part06-18_parameter_validation
||-- part06-19_incorrect_lottery_numbers
||-- part07-01_hypotenuse
||-- part07-02_special_characters
||-- part07-03_fractions
||-- part07-04_lottery_numbers
||-- part07-05_password_generator_part_1
||-- part07-06_password_generator_part_2
||-- part07-07_dice_roller
||-- part07-08_random_words
||-- part07-09_how_old
||-- part07-10_valid_pic
||-- part07-11_screen_time
||-- part07-12_json_files
||-- part07-13_course_statistics
||-- part07-14_who_cheated
||-- part07-15_who_cheated_2
||-- part07-16_spellchecker_2
||-- part07-17_string_helper
||-- part07-18_own_programming_language
||-- part08-01_smallest_average
||-- part08-02_row_sums
||-- part08-03_list_years
||-- part08-04_shopping_list
||-- part08-05_book
||-- part08-06_three_classes
||-- part08-07_pet
||-- part08-08_older_book
||-- part08-09_books_of_genre
||-- part08-10_decreasing_counter
||-- part08-11_first_and_last_name
||-- part08-12_number_stats
||-- part08-13_stopwatch
||-- part08-14_clock
||-- part08-15_lunchcard
||-- part08-16_series
||-- part09-01_fastest_car
||-- part09-02_passing_submissions
||-- part09-03_baby_centre
||-- part09-04_lunchcard_and_paymentterminal
||-- part09-05_comparing_properties
||-- part09-06_pets
||-- part09-07_box_of_presents
||-- part09-08_shortest_in_room
||-- part09-09_car
||-- part09-10_recording
||-- part09-11_weather_station
||-- part09-12_service_charge
||-- part09-13_postcodes
||-- part09-14_list_helper
||-- part09-15_item_suitcase_hold
||-- part10-01_laptop_computer
||-- part10-02_game_museum
||-- part10-03_areas
||-- part10-04_word_game
||-- part10-05_supergroup
||-- part10-06_secret_magic_potion
||-- part10-07_money
||-- part10-08_simple_date
||-- part10-09_iterable_shopping_list
||-- part10-10_phone_book_v1
||-- part10-11_phone_book_v2
||-- part10-12_course_records
||-- part11-01_square_roots
||-- part11-02_rows_of_stars
||-- part11-03_best_exam_result
||-- part11-04_lengths
||-- part11-05_remove_smaller_than
||-- part11-06_begin_with_vowel
||-- part11-07_lottery_numbers
||-- part11-08_filter_forbidden
||-- part11-09_products_in_shopping_list
||-- part11-10_cheaper_properties
||-- part11-11_lengths_of_strings
||-- part11-12_most_common_words
||-- part11-13_add_numbers_to_list
||-- part11-14_recursive_sum
||-- part11-15_balanced_brackets
||-- part11-16_greatest_node
||-- part11-17_bosses_and_subordinates
||-- part11-18_order_book
||-- part11-19_order_book_application
||-- part12-01_remaining_stock
||-- part12-02_seasons
||-- part12-03_ratings
||-- part12-04_climbing_route
||-- part12-05_climbing_areas
||-- part12-06_ballplayers
||-- part12-07_product_search
||-- part12-08_even_numbers
||-- part12-09_prime_numbers
||-- part12-10_random_words
||-- part12-11_attempted_courses
||-- part12-12_filtering_attempts
||-- part12-13_credits
||-- part12-14_regular_expressions
||-- part12-15_hockey_statistics
||-- part13-01_four_robots
||-- part13-02_robots_row
||-- part13-03_hundred_robots
||-- part13-04_random_robots
||-- part13-05_vertical_movement
||-- part13-06_round_the_perimeter
||-- part13-07_two_robots
||-- part13-08_robot_circle
||-- part13-09_bouncing_ball
||-- part13-10_robot_invasion
||-- part13-11_four_directions
||-- part13-12_four_walls
||-- part13-13_two_players
||-- part13-14_robot_and_mouse
||-- part13-15_robot_location
||-- part13-16_clock
||-- part13-17_asteroids
|`-- part14-01_own_game`-- rage-programming-24-course-data

About

Exercises & notes from University of Helsinki's Python Programming MOOC 2024

Topics

Resources

Stars

12 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Universal Dark Mode - works on any site\n(function() {\n var enabled = true;\n \n function applyDarkMode() {\n if (!enabled) return;\n \n // Create style element if it doesn't exist\n var style = document.getElementById('universal-dark-mode-style');\n if (!style) {\n style = document.createElement('style');\n style.id = 'universal-dark-mode-style';\n document.head.appendChild(style);\n }\n \n // Dark mode CSS - inverts colors but preserves images/video\n style.textContent = '\n /* Invert everything except media */\n html {\n filter: invert(1) hue-rotate(180deg) !important;\n background: #1a1a2e !important;\n }\n \n /* Restore images, videos, iframes, canvas */\n img, video, iframe, canvas, svg, picture, [style*=\"background-image\"] {\n filter: invert(1) hue-rotate(180deg) !important;\n }\n \n /* Preserve specific elements that should not be inverted */\n .no-dark-mode, .no-dark-mode *,\n [data-theme=\"light\"], [data-theme=\"light\"],\n .ace_editor, .ace_editor *,\n .CodeMirror, .CodeMirror *,\n .monaco-editor, .monaco-editor *,\n .markdown-body pre, .markdown-body pre *,\n .highlight, .highlight *,\n pre code, pre code * {\n filter: none !important;\n }\n \n /* Fix common UI elements */\n .modal, .popup, .dropdown-menu, .tooltip, .popover {\n filter: invert(1) hue-rotate(180deg) !important;\n background: #2d2d44 !important;\n border-color: #444 !important;\n }\n \n /* Scrollbars */\n ::-webkit-scrollbar { background: #1a1a2e !important; }\n ::-webkit-scrollbar-thumb { background: #444 !important; }\n ::-webkit-scrollbar-thumb:hover { background: #555 !important; }\n \n /* Selection */\n ::selection { background: #4ecdc4 !important; color: #1a1a2e !important; }\n ::-moz-selection { background: #4ecdc4 !important; color: #1a1a2e !important; }\n ';\n }\n \n function removeDarkMode() {\n var style = document.getElementById('universal-dark-mode-style');\n if (style) style.remove();\n }\n \n // Toggle with Alt+Shift+D\n document.addEventListener('keydown', function(e) {\n if (e.altKey && e.shiftKey && e.key === 'D') {\n e.preventDefault();\n enabled = !enabled;\n if (enabled) {\n applyDarkMode();\n console.log('[Universal Dark Mode] Enabled');\n } else {\n removeDarkMode();\n console.log('[Universal Dark Mode] Disabled');\n }\n }\n });\n \n // Apply on load\n applyDarkMode();\n \n // Re-apply on dynamic content\n var observer = new MutationObserver(function(mutations) {\n if (enabled && !document.getElementById('universal-dark-mode-style')) {\n applyDarkMode();\n }\n });\n observer.observe(document.head, { childList: true });\n \n console.log('[Universal Dark Mode] Loaded - Press Alt+Shift+D to toggle');\n})();", "Universal Dark Mode"); } } catch(__e) { console.warn('[Userscript:Universal Dark Mode]', __e); } })(); })();
Skip to content

Repository files navigation

Python Programming MOOC 2024

All my notes and solutions from the University of Helsinki's Python Programming MOOC 2024

The exercises and examples are entirely implemented in Python 3. There are no requirements for external packages and/or libraries, except for Part 13 and 14, which requires Pygame.

Please feel free to message me for any questions or suggestions.

References

Course Website: https://programming-24.mooc.fi/

Files

|-- 0 - Master Notes.md
|-- 1 - Pygame.md
|-- 0 - Introduction to Programming Notes
||-- Data-Files
||-- Intro To Programming Exam - 04-05-2024
|||-- Exam1.md
|||-- Notes
||||-- Exercise 1.py
||||-- Exercise 2 copy.py
||||-- Exercise 2.py
||||-- Exercise 3.py
||||-- statistics copy.txt
|||`-- statistics.txt||`-- Submissions
|||-- ValueErrors.txt
|||-- exercise1.py
|||-- exercise2.py
|||-- exercise3.py
||`-- statistics.txt||-- Part 1 - Arithmetic Operations.py||-- Part 1 - Conditional Statements.py||-- Part 1 - Prints & Inputs.py||-- Part 2 - More Conditionals.py||-- Part 2 - Simple Loops.py||-- Part 3 - Debugging Example.py||-- Part 3 - Defining Functions.py||-- Part 3 - Loops with Conditions.py||-- Part 3 - More Loops.py||-- Part 3 - Strings.py||-- Part 4 - Definite iteration.py||-- Part 4 - Developing a larger programming project.py||-- Part 4 - Grade Statistics - 2.py||-- Part 4 - Grade Statistics.py||-- Part 4 - Lists.py||-- Part 4 - More Functions.py||-- Part 4 - More strings and lists.py||-- Part 4 - Print statement formatting.py||-- Part 5 - Dictionary.py||-- Part 5 - More Lists and Matrix.py||-- Part 5 - References.py||-- Part 5 - Student database.py||-- Part 5 - Sudoku.py||-- Part 5 - Test.ipynb||-- Part 5 - Tuple.py||-- Part 6 - Handling errors.py||-- Part 6 - Reading Files.py||-- Part 6 - Writing files.py||-- Part 7 - Creating your own modules.py||-- Part 7 - Data processing.py||-- Part 7 - Modules.py||-- Part 7 - More Python features.py||-- Part 7 - Randomness.py||-- Part 7 - Times and dates.py|`-- string_helper.py
|-- 1 - Advanced Course in Programming Notes
||-- Advanced Course in Programming Exam - 15-06-2024
|||-- Exam.md
|||-- Exercise 1.py
|||-- Exercise 2.py
|||-- Exercise 3-1.py
|||-- Exercise 3.py
||`-- recipes.txt||-- Data-Files||-- Part 10 - Access modifiers.py||-- Part 10 - Class hierarchies.py||-- Part 10 - Developing a larger application.py||-- Part 10 - Object oriented programming techniques.py||-- Part 11 - List comprehensions.py||-- Part 11 - More comprehensions.py||-- Part 11 - More recursion examples.py||-- Part 11 - Recursion.py||-- Part 12 - Functional programming.py||-- Part 12 - Functions as arguments.py||-- Part 12 - Generators.py||-- Part 12 - Lambda Function Exercises.ipynb||-- Part 12 - Regular expressions.py||-- Part 13 - Animation.py||-- Part 13 - Events.py||-- Part 13 - More pygame techniques.py||-- Part 13 - Pygame.py||-- Part 14 - Finishing the game.py||-- Part 14 - Game project.py||-- Part 14 - Robot and boxes.py||-- Part 8 - Classes and objects.py||-- Part 8 - Defining classes.py||-- Part 8 - Defining methods.py||-- Part 8 - More examples of classes.py||-- Part 8 - Objects and methods.py||-- Part 9 - Class attributes.py||-- Part 9 - Encapsulation.py||-- Part 9 - More examples with classes.py||-- Part 9 - Objects and references.py||-- Part 9 - Objects as attributes.py|`-- Part 9 - Scope of methods.py
|-- Applications
||-- CoinPort
|||-- coin.png
|||-- door.png
|||-- game.py
|||-- monster.png
||`-- robot.png||-- CourseRecords Application||`-- main.py
||-- Hockey Statistics Application
|||-- all.json
|||-- hockey_statistics-v2.py
|||-- hockey_statistics.py
||`-- partial.json||-- Maze Generator|||-- Maze generation copy.py|||-- Maze generation.py||`-- maze.txt
||-- OrderBook Application
|||-- input.txt
|||-- input2.txt
|||-- input3.txt
|||-- main.py
||`-- test.py||-- Pacman||-- Part 9 - Objects as attributes - Example|||-- MainFunction.py|||-- completedcourse.py|||-- course.py||`-- student.py
||-- PhoneBook Application
|||-- main.py
|||-- main_expansion_v2.py
||`-- phonebook.txt||-- Rich The Robot|||-- coin.png|||-- door.png|||-- game.py|||-- monster.png||`-- robot.png
||-- Your-own-game
|||-- coin.png
|||-- door.png
|||-- game.py
|||-- monster.png
||`-- robot.png|`-- sokoban
||-- README.md
||-- sokoban-english.py
|-- Data-Files
|-- Images
|-- README.md
|-- Reference Notes
||-- Algorithms.py
||-- Angles in Pygame.py
||-- Comprehensions.py
||-- Primes
|||-- 10m_prime_sive.txt
|||-- 1m_prime_sive_v0.txt
|||-- Prime_Sieve_1.py
|||-- Prime_Sieve_2.py
|||-- Prime_Sieve_3.py
|||-- Prime_Sieve_4.py
|||-- Prime_Sieve_4a.py
|||-- Prime_Sieve_5py
|||-- Trial_Div_1.py
|||-- Trial_Div_2.py
||`-- solution_3|||-- Dockerfile|||-- PrimePY.py|||-- README.md||`-- tests
|||-- __init__.py
||`-- test_sieve.py|`-- f-string.py
|-- Slides
||-- Slides 1.pdf
||-- Slides 10.pdf
||-- Slides 11.pdf
||-- Slides 12.pdf
||-- Slides 2.pdf
||-- Slides 3.pdf
||-- Slides 4.pdf
||-- Slides 5.pdf
||-- Slides 6.pdf
||-- Slides 7.pdf
|`-- Slides 8.pdf|-- course-submission-files||-- hy-adv-course-in-prog-exam-15062024|||-- Exam15062024-Exercise1|||-- Exam15062024-Exercise2||`-- Exam15062024-Exercise3
||-- hy-intro-to-programming-exam-04052024
|||-- Exam04052024-Exercise1
|||-- Exam04052024-Exercise2
||`-- Exam04052024-Exercise3|`-- mooc-programming-24
||-- part01-01_emoticon
||-- part01-02_seven_brothers
||-- part01-03_row_your_boat
||-- part01-04_minutes_in_a_year
||-- part01-05_print_code
||-- part01-06_name_twice
||-- part01-07_name_and_exclamation_marks
||-- part01-08_name_and_address
||-- part01-09_utterances
||-- part01-10_story
||-- part01-10b_extra_space
||-- part01-11_arithmetics
||-- part01-12_print_a_single_line
||-- part01-13_times_five
||-- part01-14_name_and_age
||-- part01-15_seconds_in_a_day
||-- part01-16_product
||-- part01-17_sum_and_product
||-- part01-18_sum_and_mean
||-- part01-19_food_expenditure
||-- part01-20_students_in_groups
||-- part01-21_orwell
||-- part01-22_absolute_value
||-- part01-23_soup_or_no_soup
||-- part01-24_order_of_magnitude
||-- part01-25_calculator
||-- part01-26_temperatures
||-- part01-27_daily_wages
||-- part01-28_loyalty_bonus
||-- part01-29_what_to_wear_tomorrow
||-- part01-30_quadratic_formula
||-- part02-01_fix_syntax
||-- part02-02_number_of_characters
||-- part02-03_typecasting
||-- part02-04_age_of_maturity
||-- part02-05_greater_or_equal
||-- part02-06_elder
||-- part02-07_alphabetically_last
||-- part02-08_age_check
||-- part02-09_nephews
||-- part02-10_grades_and_points
||-- part02-11_fizzbuzz
||-- part02-12_leap_year
||-- part02-13_alphabetically_in_the_middle
||-- part02-14_gift_tax_calculator
||-- part02-15_shall_we_continue
||-- part02-16_input_validation
||-- part02-17_countdown
||-- part02-18_repeat_password
||-- part02-19_pin_and_number_of_attempts
||-- part02-20_next_leap_year
||-- part02-21_story
||-- part02-22_working_with_numbers
||-- part03-01_print_numbers
||-- part03-02_countdown
||-- part03-03_numbers
||-- part03-04_powers_of_two
||-- part03-05_powers_of_base_n
||-- part03-06_consecutive_sum_v1
||-- part03-07_consecutive_sum_v2
||-- part03-08_string_multiplied
||-- part03-09_longer_string
||-- part03-10_end_to_beginning
||-- part03-11_second_and_second_to_last
||-- part03-12_line_of_hashes
||-- part03-13_rectangle_of_hashes
||-- part03-14_underlining
||-- part03-15_right_aligned
||-- part03-16_framed_word
||-- part03-17_substrings_part_1
||-- part03-18_substrings_part_2
||-- part03-19_does_it_contain_vowels
||-- part03-20_find_first_substring
||-- part03-21_find_all_substrings
||-- part03-22_second_occurrence
||-- part03-23_multiplication
||-- part03-24_first_letters_of_words
||-- part03-25_factorial
||-- part03-26_flip_the_pairs
||-- part03-27_taking_turns
||-- part03-28_seven_brothers
||-- part03-29_first_character
||-- part03-30_mean
||-- part03-31_print_many_times
||-- part03-32_square_of_hashes
||-- part03-33_chessboard
||-- part03-34_word_squared
||-- part04-01_hello_visual_studio_code
||-- part04-02_line
||-- part04-03_box_of_hashes
||-- part04-04_square_of_hashes
||-- part04-05_square
||-- part04-06_triangle
||-- part04-07_shape
||-- part04-08_spruce
||-- part04-09_greatest_number
||-- part04-10_same_characters
||-- part04-11_first_second_last
||-- part04-12_change_value_of_item
||-- part04-13_add_items_to_list
||-- part04-14_addition_and_removal
||-- part04-15_same_word_twice
||-- part04-16_list_twice
||-- part04-17_length_of_list
||-- part04-18_mean
||-- part04-19_range_of_list
||-- part04-20_star_studded
||-- part04-21_negative_to_positive
||-- part04-22_list_of_stars
||-- part04-23_anagrams
||-- part04-24_palindromes
||-- part04-25_sum_of_positives
||-- part04-26_even_numbers
||-- part04-27_sum_of_lists
||-- part04-28_distinct_numbers
||-- part04-29_length_of_longest
||-- part04-30_shortest_in_list
||-- part04-31_all_longest_in_list
||-- part04-32_integers_to_strings
||-- part04-33_everything_reversed
||-- part04-34_most_common_character
||-- part04-35_no_vowels_allowed
||-- part04-36_no_shouting_allowed
||-- part04-37_neighbours_in_list
||-- part04-38_grade_statistics
||-- part05-01_longest_string
||-- part05-02_number_of_elements
||-- part05-03_go
||-- part05-04_sudoku_row
||-- part05-05_sudoku_column
||-- part05-06_sudoku_block
||-- part05-07_sudoku_grid
||-- part05-08_items_multiplied_by_two
||-- part05-09_remove_smallest
||-- part05-10_sudoku_print_and_add
||-- part05-11_sudoku_add_to_copy
||-- part05-12_tic_tac_toe
||-- part05-13_transpose_matrix
||-- part05-14_times_ten
||-- part05-15_factorials
||-- part05-16_histogram
||-- part05-17_phone_book_v1
||-- part05-18_phone_book_v2
||-- part05-19_invert_dictionary
||-- part05-20_numbers_spelled_out
||-- part05-21_movie_database
||-- part05-22_find_movies
||-- part05-23_create_tuple
||-- part05-24_oldest_person
||-- part05-25_older_people
||-- part05-26_student_database
||-- part05-27_letter_square
||-- part06-01_largest_number
||-- part06-02_fruit_market
||-- part06-03_matrix
||-- part06-04_course_grading_part_1
||-- part06-05_course_grading_part_2
||-- part06-06_course_grading_part_3
||-- part06-07_spellchecker
||-- part06-08_recipe_search
||-- part06-09_city_bikes
||-- part06-10_inscription
||-- part06-11_diary
||-- part06-12_filtering_file_contents
||-- part06-13_store_personal_data
||-- part06-14_course_grading_part_4
||-- part06-15_word_search
||-- part06-16_dictionary_file
||-- part06-17_read_input
||-- part06-18_parameter_validation
||-- part06-19_incorrect_lottery_numbers
||-- part07-01_hypotenuse
||-- part07-02_special_characters
||-- part07-03_fractions
||-- part07-04_lottery_numbers
||-- part07-05_password_generator_part_1
||-- part07-06_password_generator_part_2
||-- part07-07_dice_roller
||-- part07-08_random_words
||-- part07-09_how_old
||-- part07-10_valid_pic
||-- part07-11_screen_time
||-- part07-12_json_files
||-- part07-13_course_statistics
||-- part07-14_who_cheated
||-- part07-15_who_cheated_2
||-- part07-16_spellchecker_2
||-- part07-17_string_helper
||-- part07-18_own_programming_language
||-- part08-01_smallest_average
||-- part08-02_row_sums
||-- part08-03_list_years
||-- part08-04_shopping_list
||-- part08-05_book
||-- part08-06_three_classes
||-- part08-07_pet
||-- part08-08_older_book
||-- part08-09_books_of_genre
||-- part08-10_decreasing_counter
||-- part08-11_first_and_last_name
||-- part08-12_number_stats
||-- part08-13_stopwatch
||-- part08-14_clock
||-- part08-15_lunchcard
||-- part08-16_series
||-- part09-01_fastest_car
||-- part09-02_passing_submissions
||-- part09-03_baby_centre
||-- part09-04_lunchcard_and_paymentterminal
||-- part09-05_comparing_properties
||-- part09-06_pets
||-- part09-07_box_of_presents
||-- part09-08_shortest_in_room
||-- part09-09_car
||-- part09-10_recording
||-- part09-11_weather_station
||-- part09-12_service_charge
||-- part09-13_postcodes
||-- part09-14_list_helper
||-- part09-15_item_suitcase_hold
||-- part10-01_laptop_computer
||-- part10-02_game_museum
||-- part10-03_areas
||-- part10-04_word_game
||-- part10-05_supergroup
||-- part10-06_secret_magic_potion
||-- part10-07_money
||-- part10-08_simple_date
||-- part10-09_iterable_shopping_list
||-- part10-10_phone_book_v1
||-- part10-11_phone_book_v2
||-- part10-12_course_records
||-- part11-01_square_roots
||-- part11-02_rows_of_stars
||-- part11-03_best_exam_result
||-- part11-04_lengths
||-- part11-05_remove_smaller_than
||-- part11-06_begin_with_vowel
||-- part11-07_lottery_numbers
||-- part11-08_filter_forbidden
||-- part11-09_products_in_shopping_list
||-- part11-10_cheaper_properties
||-- part11-11_lengths_of_strings
||-- part11-12_most_common_words
||-- part11-13_add_numbers_to_list
||-- part11-14_recursive_sum
||-- part11-15_balanced_brackets
||-- part11-16_greatest_node
||-- part11-17_bosses_and_subordinates
||-- part11-18_order_book
||-- part11-19_order_book_application
||-- part12-01_remaining_stock
||-- part12-02_seasons
||-- part12-03_ratings
||-- part12-04_climbing_route
||-- part12-05_climbing_areas
||-- part12-06_ballplayers
||-- part12-07_product_search
||-- part12-08_even_numbers
||-- part12-09_prime_numbers
||-- part12-10_random_words
||-- part12-11_attempted_courses
||-- part12-12_filtering_attempts
||-- part12-13_credits
||-- part12-14_regular_expressions
||-- part12-15_hockey_statistics
||-- part13-01_four_robots
||-- part13-02_robots_row
||-- part13-03_hundred_robots
||-- part13-04_random_robots
||-- part13-05_vertical_movement
||-- part13-06_round_the_perimeter
||-- part13-07_two_robots
||-- part13-08_robot_circle
||-- part13-09_bouncing_ball
||-- part13-10_robot_invasion
||-- part13-11_four_directions
||-- part13-12_four_walls
||-- part13-13_two_players
||-- part13-14_robot_and_mouse
||-- part13-15_robot_location
||-- part13-16_clock
||-- part13-17_asteroids
|`-- part14-01_own_game`-- rage-programming-24-course-data

About

Exercises & notes from University of Helsinki's Python Programming MOOC 2024

Topics

Resources

Stars

12 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages