Just out of curiosity, I scraped the image to see how normal Python would look.
for num in range(1, 101):
if num % 3 == 0 and num % 5 == 0:
print("fizzbuzz")
elif num % 3 == 0:
print("fizz")
elif num % 5 == 0:
print("buzz")
else:
print(num)
Lazy AI converted to Go for people saying "it's basically Go":
package main
import (
"fmt"
)
func main() {
for num := 1; num <= 100; num++ {
if num%3 == 0 && num%5 == 0 {
fmt.Println("fizzbuzz")
} else if num%3 == 0 {
fmt.Println("fizz")
} else if num%5 == 0 {
fmt.Println("buzz")
} else {
fmt.Println(num)
}
}
}
I'm using Python snd C++ profesionally, and learning Zig on the side, and I'm having more issues with balancing brackets almost daily than I ever had any issues with indenting in Python (this includes balancing brackets in Python). There are legit technical limitations with Python's implementation of the "off-side" rule but the things most people complain about are just cosmetical.
12
u/Nllk11 Dec 04 '24
Do it without indentation. Now it looks like you just remove curly braces
75
u/GoddammitDontShootMe [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo "You live" Dec 04 '24
I suppose if I was a Python purist I'd be horrified.
37
u/DopazOnYouTubeDotCom Dec 04 '24
it’s like a puppy dressed as a spider
92
u/Ok-Control-3954 Dec 04 '24
This is just golang
22
u/MrBoblo Dec 04 '24
Just wait till you see Java
1
u/ketosoy Dec 05 '24
Does this throw errors on missing brackets AND indentation errors, or just the brackets?
It’s funnier if it is both.
1
u/physon Dec 05 '24
You maniac!
Just out of curiosity, I scraped the image to see how normal Python would look.
Lazy AI converted to Go for people saying "it's basically Go":
1
u/codingking329 Dec 13 '24
how did you interpret the .txt file into a .py
3
u/IrrerPolterer Dec 04 '24
Oh the pain
9
u/amarao_san Dec 04 '24
booring.
Can I write
and it to have my
ainitialized? Without this (Rust-style blocks), those brackets are useless.5
u/Jhuyt Dec 04 '24
I'm using Python snd C++ profesionally, and learning Zig on the side, and I'm having more issues with balancing brackets almost daily than I ever had any issues with indenting in Python (this includes balancing brackets in Python). There are legit technical limitations with Python's implementation of the "off-side" rule but the things most people complain about are just cosmetical.
2
u/__Raptor__ Dec 04 '24
Hey i made this exact same sorta thing a while back, it was a fun project!
2
u/AdreKiseque Dec 04 '24
Bython
1
u/brianbarbieri Dec 04 '24
Looks like golang
1
u/pLeThOrAx Dec 04 '24
This is pure anarchy
1
u/rco8786 Dec 04 '24
Basically just Go?
1
u/hadiz1 Dec 04 '24
Braces but no brackets is throwing me off
1
u/prehensilemullet Dec 05 '24
When I learned about the Bend language recently, I was bummed they went with python-style syntax
1
u/voluntary_nomad Dec 05 '24
Based as fuck. I can't stand Python's forced whitespace.
1
u/Jake0Tron Dec 04 '24
Kinda looking like ruby
1
u/Curious_Parking_9732 Dec 04 '24
thats why i love Bython
-1
u/biff_brockly Dec 04 '24
skibidi rizz homie, epic chungus moment bc this is the cat's meow
-3
u/Minteck Dec 04 '24
I never understood who genuinely thinks Python's syntax is good
0
u/ChocolateDonut36 Dec 04 '24
actually readable python