One of the reasons that I happen to love python is that its easier to write the code.
Take for instance writing a python code that prints Python is simple.
- To write this kind of output in C++ it is going to be like this:
#include <iostream.h>
int main()
{
cout<<"Python is simple";
return 0;
}
- To write the same output in Java:
class hope{
public static void main(string[]args)
{
system.out.println("Python is simple");
}
}
- But to write the sane code in Python you only need 1 line of code
print("Python is Simple")
Top comments (3)
It can get complex you know..
yeah, but not that complex
but still I would choose it over the others