why python is called python code example
Example 1: why use python
#Hello world in Java:
public class Main {
public static void main(String[] args) {
System.out.println("hello world");
}
}
#Hello world in Python:
print('hello world')
#See?
Example 2: why use python
#Hello world in C++
#include <iostream>
using namespace std;
int main() {
cout << "Hello World!";
return 0;
}
#Hello world in python
print('Hello World!')