Unlike the other programming languages, Python provides the facility to execute the code using few lines.
For example - Suppose we want to print the "Hello World" program in Java; it will take three lines to print it.
Java Program
Java Program
public class HelloWorld {
public static void main(String[] args){
// Prints "Hello, World" to the terminal window.
System.out.println("Hello World");
}
}
Python Program
On the other hand, we can do this using one statement in Python.
print("Hello World")
Basic Syntax;
def func():
statement 1
statement 2
…………………
…………………
statement N