Editorial for Andyman's Golf Course - Hole 6 - The Final Hole


Remember to use this editorial only when stuck, and not to copy-paste code from it. Please be respectful to the problem author and editorialist.
Submitting an official solution before solving the problem yourself is a bannable offence.

Author: AndyMan68

14 bytes

Simply printing out a single character string multiplied by 100 would pass.

print('a'*100)

13 bytes

Instead of printing a string, printing a really big number with at least 100 digits would pass.

print(99**99)

12 bytes

Using the special builtin function dir(), which returns a list of attributes was (and likely is the only) 12 byte solution that exists. This solution was shown to AndyMan68 by a few participants of the golf contest, which he found quite genius, but unfortunately is 1 byte off from earning full marks.

print(dir())

11 bytes

It should be noticed that print() takes up at least 7 of the 11 characters available for full marks, and so somehow 4 characters should cause something with at least 100 characters to be printed. This would require some very dark voodoo Python magic to make work.

Now AndyMan68 isn't just going to give away the solution to this final hole, but will give you a hint that will (hopefully) guide you to the full solution.

After reading the intended solution, one might think to themselves...

...how does this even work?

...this is such a strange solution... what is this?


Comments

There are no comments at the moment.