how is python used 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: what is python

# official Answer
Python is an interpreted, object-oriented, high-level programming 
language with dynamic semantics. Its high-level built in data 
structures, combined with dynamic typing and dynamic binding, 
make it very attractive for Rapid Application Development, as 
well as for use as a scripting or glue language to connect existing 
components together. 

# My answer
This interpreted language is one of the best thing that have happened 
since perl. Perl was my favorite at one time because of amazing 
community support. Python has made significant strides in that area.
Some time you code and wish if it was possible to do it this way. It 
is highly likely you'll find out someone already implemented that. The
tool pip is your best friend which makes importing libraries a 
cakewalk. You don't have to jump too many hoops to implment a feature.

Example 3: what is python

Q: What is Python?

A: Python is an interpreted, high-level and general-purpose programming
language. Python's design philosophy emphasizes code readability with its
notable use of significant indentation.

Tags:

Misc Example