This is a fully functional game of snake in a single line of python using pygame. I did this mostly as a challenge to myself to see how compact I can make code, similar to code golf. I got it down to less than 3K characters, but I could easily get much less by shortening variable names. source code. edit: some bug fixes made it go over 3K chars
https://www.reddit.com/r/Python/comments/idxmnt/snake_game_in_a_single_line_of_python/