Giter Site home page Giter Site logo

adventofcode2020's Introduction

Advent of Code 2020: Problems solved with Python

These are my answers for the Advent of Code 2020 challenge. I use Python as my main programming language for this exercise.

Overarching goal: show novice users some good Python code examples.

Having been programming in Python for a few years now, I have learned a lot about how to write nice, readable and correctly working Python programs. I am by no means a Python guru, just somebody who likes to share lessons learned. If you see some solutions that can be improved, feel free to make a PR!

Goal: show off the stdlib

Python has many useful builtin features or functions that can be used to solve problems as stated in "Advent of Code". I hope to highlight these features by solving the problems and hope this encourages people to read the Python documentation more when they are trying to tackle a problem.

Goal: provide functional programming examples

The programs follow the functional programming paradigm as much as possible. The functions should return the same output when given the same arguments. There is no internal "state" to take into account. This simplifies testing and code maintenance.

Goal: provide examples for testing

All programs are tested using pytest. This ensures that they work before the solution is submitted. It also shows new users how to write a few simple tests.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.