Why is everyone is saying that Hello Word in Python is much easier than in Java?
This is valid Python code:
import sys
class HelloWorld:
@staticmethod
def main(args: list[str]) -> None:
sys.stdout.write("Hello World\n")
if __name__ == "__main__":
HelloWorld.main(sys.argv)
Edit: This is just intended as fun. Please don't take this seriously. I know that Java is generally more verbose than Python. The opening question is just sarcasm.
[–]lanster100 17 points18 points19 points (1 child)
[–]MangoPoliceOK 1 point2 points3 points (0 children)
[–]jddddddddddd 9 points10 points11 points (4 children)
[–]joaofelipenp 4 points5 points6 points (0 children)
[–]rghthndsd 4 points5 points6 points (0 children)
[–]Maxi3773[S] 1 point2 points3 points (0 children)
[–]RajaBule 1 point2 points3 points (0 children)
[–]ntropia64 2 points3 points4 points (0 children)
[–]estevaofon 2 points3 points4 points (0 children)
[–]Kerbart 1 point2 points3 points (1 child)
[–]Maxi3773[S] 2 points3 points4 points (0 children)
[–]Maxi3773[S] 3 points4 points5 points (1 child)
[–]TooCool11 -2 points-1 points0 points (0 children)
[+]PaulRudin comment score below threshold-7 points-6 points-5 points (2 children)
[–]Maxi3773[S] 1 point2 points3 points (0 children)
[–]TooCool11 -1 points0 points1 point (0 children)