Andyman's Golf Course

Welcome to Andyman's Golf Course!

After some disastrous contests, AndyMan68 has decided to take up his hobby of code golfing, and open up a golf course!

For those who aren't familiar with code golfing, code golfing is type of programming in which the overall goal is to write the shortest possible code to solve a simple problem in a particular language. Instead of making code clean and readable, the purpose is to learn and utilize a programming language's features in order to shorten code as much as possible.

Since length of code is heavily dependent on programming languages (some having longer and less golfing-friendly syntax and features), this golf course is for Python 3 only.

Each hole in this golf course is designed to highlight a specific feature that is important for golfing in Python, ranging from string formatting to lambda functions.

Each problem has a scoring section to determine the score you will get for your submission. If your program is correct, but not of the shortest length, you will still receive AC but not a full score. The intended solutions were what were used for the scoring, however it is still possible that a shorter solution exists.

Note that a newline is counted as 2 bytes instead of 1 when determining the length of the code.

Since the goal of this contest is to introduce new Python syntax and features, you may use online resources to learn about them. Do not resort to generative AI, instead editorials with hints will be published after the contest ends if you are curious about the intended solutions.

A special thanks to JasonLovesDoggo for contributing to problem solutions, testing, and setting up the checkers.

If you don't have time to do all the problems, AndyMan68's personal favorites are Holes 1, 3, and 6.

Good luck and have fun!

Note: The scoring for Hole 3 has changed to be more strict and all submissions for the problem has been rejudged


Comments

There are no comments at the moment.