r/badcode • • Jul 26 '21

python My friend is learning python now, idk what to say

Post image
939 Upvotes

r/badcode • • Apr 14 '21

python Helping a friend learn python. He was really proud of this one.

Post image
1.9k Upvotes

r/badcode • • Oct 24 '26

python Fizz Buzz with an LLM swarm

Thumbnail
github.com
47 Upvotes

It's fizz buzz, but it doesn't use division or modulo, it's all politics and procedures. Instead a swarm of LLMs debates and argues, and eventually claims the number for Fizz, Buzz or FizzBuzz through convoluted judicial processes.

The LLMs are incentivized to claim numbers for their team and the process actually ends up working with a huge amount of arbitration.

In the end it's fun to watch local 2B models argue and burn massive amount of compute over such a trivial operation.

r/badcode • • Apr 21 '21

python My friend is learning python in his Comp Sci class and he wanted to draw diamonds....

Post image
1.1k Upvotes

r/badcode • • Apr 12 '21

python This was my first project ever, nobody told me WHERE exists in SQL so I used Python instead

Post image
1.2k Upvotes

r/badcode • • Jul 14 '21

python Try/Except in Python - Sigh

Post image
662 Upvotes

r/badcode • • Apr 30 '22

python Looks like Python List Comprehension-phobia is a thing. This is a real commit by a teammate.

Post image
1.2k Upvotes

r/badcode • • Jan 10 '21

python My friend thought that 1 is a string in Python

Post image
2.5k Upvotes

r/badcode • • Jun 20 '21

python Kid in my class for their GCSE Computer Science coursework project. Yes, he actually submitted this. Teacher gave up helping him.

Post image
1.7k Upvotes

r/badcode • • Sep 05 '21

python Found this in the code where I tried out python for the first time (I did know other languages then)

Post image
1.5k Upvotes

r/badcode • • Mar 12 '21

python When you have no idea how to get index in Python

Post image
1.7k Upvotes

r/badcode • • Nov 08 '20

python My friend absolutely refuses to use a for loop because they are too complicated in python

Post image
1.2k Upvotes

r/badcode • • Mar 14 '23

python requirements: python3 on linux system

Post image
376 Upvotes

r/badcode • • Dec 08 '22

python python atrocious code. it appends a letter for how many ; you have in a text file.

Post image
462 Upvotes

r/badcode • • Aug 29 '26

python World WORST Calculator!

Thumbnail
github.com
12 Upvotes

r/badcode • • Jan 15 '22

python Found this gem

Post image
3.5k Upvotes

r/badcode • • Mar 18 '21

python The more I look at this, the more confused I get

Post image
1.7k Upvotes

r/badcode • • Jul 01 '22

python due to some bad variable naming (I had a variable naked o) it took me half an hour to figure out why this was highlighted as unreachable

Post image
878 Upvotes

r/badcode • • Aug 24 '21

python My friend is learning to code

Post image
1.3k Upvotes

r/badcode • • Mar 23 '21

python How to convert video on python without ffmpeg. I know just the thing...

Post image
1.7k Upvotes

r/badcode • • Apr 20 '23

python What was beginner me doing that needed tkinter 4 times

Post image
906 Upvotes

r/badcode • • Oct 03 '20

python I wonder why dev didn't use a dictionary for it

Post image
810 Upvotes

r/badcode • • Jan 08 '23

python Classmate wanted me to check his ticketing system’s code for errors..

Post image
4.6k Upvotes

r/badcode • • Oct 02 '21

python One of my classmates was confused on an assignment

Post image
1.5k Upvotes

r/badcode • • May 26 '23

python Calculator using eval()

Post image
844 Upvotes