rects = [[int(input("Length 1: ")), int(input("Width 1: "))], [int(input("Length 2: ")), int(input("Width 2: "))]]
print("Rect 1 is bigger" if ((rects[0][0] * rects[0][1]) > (rects[1][0] * rects[1][1])) else "Rect 2 is bigger" if ((rects[0][0] * rects[0][1]) < (rects[1][0] * rects[1][1])) else "They're the same")
#MINIFICATIONi submitted this program to my teacher
What language is this
python because of course it is
That doesn’t look like python
that’s probably because it’s hand-minified python
like minjs but shittier and harder to read
I loved doing this sort of thing when i did cs at school, it's very good fun. An alternative (i haven't checked this and wrote it on my phone so sorry if there's a syntax error):
damn, clever way of doing it. the unminified version of my code is ugly as hell and very inefficient and i definitely would have written it better but the cs teacher made us write it that way
i wrote the program in somewhere around 30 seconds and decided it might be fun to minify it
very nice, definitely keep finding ways to make these menial programming tasks more interesting!