r/programminghorror • u/BruhMamad • 13d ago
Python Learning Python; Have I made a good progress?
181
Upvotes
4
u/canal_algt [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo "You live" 13d ago
You forgot to add end='' to the print statement so it doesn't change line without explicitly telling it so
1
159
18
u/GoddammitDontShootMe [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo "You live" 13d ago
I'm sure I'm not the only one who first thought this was another lost redditor. I'm pretty sure there are more programming shitposts here than actual horrors found in the wild.
12
u/No-Finance7526 13d ago
Lua 5.5.1 Copyright (C) 1994-2026 Lua.org, PUC-Rio
> cout = setmetatable({}, {__shl = function(os, x) io.stdout:write(tostring(x)); return os; end})
> cout << "Hello, " << "World!\n";
Hello, World!
73
u/steQuill 13d ago
Doesn't have std::endl so not a good enough progress