python code comparison with other language codes

Comparing python with c and java

in C language :

#include<stdio.h>
main()
{
printf("hello world\n");
}

in Java:

class 
myfirstjavaprog
{
public static void main(string args[])
{
system.out.println("hello world!");
}
}

in python:

print("hello world!")






1 comment: