Python Example

In this page you learn basic Python example is simple and easy write to run. Here is a simple Python example that will print "Welcome to Mithilesh Kushwaha".

# This is Example of python  							
>>> x="Welcome to Mithilesh Kushwaha"  
>>> print x  
Welcome to Mithilesh Kushwaha 
>>> 

Details of this example

We are using IDLE to write the Python example. Details to run example is given in Execute Python section.

A variable is defined named "x" which hold "Welcome to Mithilesh Kushwaha". "print" statement is used to print the statement. Therefore "print x" statement will print the line of the variable. Therefore, the output "Welcome to Mithilesh Kushwaha" is produced.