Thursday, June 30, 2016


Python Features

Let's know about python features 


There are a lot of features provided by python programming language.

  • Easy to Use: Python is easy use and high level language.it is programmer-friendly language.


  • Expressive Language: It is more expressive language because python code is easily understandable.


  • Interpreted Language: It is an interpreted language.It interpreted a code line by line. 


  • Portable language: It is a portable language. because python run in any platform.


  • Open Source: it is open source.freely available.


  • Object-Oriented language: It supports object oriented language. Concept of classes and objects comes into existence.


  • Extensible: It implies that other languages such as C/C++ can be used to compile the code and thus it can be used further in your python code.


  • Large Standard Library: Python has a large library.


  • GUI Programming: Graphical user interfaces can be developed using Python.


  • Integrated: It can be easily integrated with languages like C, C++, JAVA etc.

Wednesday, June 29, 2016

Are You ready to do First program in python ?


In the python not declare a data type direct declare a variable in our first program we print a variable because "hello world" is common.

python have a  print statement syntax we earlier seen when we see the difference between python 2 and python 3 if you don't read that post read it because it is important but again I repeat the syntax of print statement

for python 2 print ""
for python 3 print ("")

First program of python or Example of python


a="Hello world"
print "value of a="+a
b=10
print "value of b="+b

output 

value of a=Hello World
value of b=10

+  sign is use for concatenation. 

How To Install a Python in your computer ?? Or Installation steps for python...

For Windows.

  • Step 1 : Download a python 2 or python 3 version.
  • Step 2 : Click on the .exe file.
  • Step 3 : Click next next and install a python in your computer.
  • Step 4 : After installed you should have a Python menu choice. Start the program by choosing IDLE(Python GUI).
  • Enjoy the python programming.
  • If any error occur so set the environment variable.

Steps for How set an environment variable ??

  • Step 1 : Right Click on My Computer go to properties.
  • Step 2 : Click on advanced system settings.
  • Step 3 : Click on Environment Variable.
  • Step 4 : after that in the system variable find a path.
  • Step 5 : Click on edit. 
  • Step 6 : at the end of path variable value write a python path and after that put a semicolon.

For Linux 

  • In the Linux all are inbuilt so don't require for installation.
  • just write a simple program in text editor and run in command prompt.
  • just write in command prompt python filename.py 
Enjoy Learning


Monday, June 27, 2016

Let's know about python versions

  • actually python have a 2 different versions one is python 2 and second is python 3.

What is difference between python 2 and python 3 ??

  • Version : Python 2 is older version of python when python 3 is newer version of python.
  • Libraries : Python 2 have a more library then python 3 have less library.
  • Print Statement : Python 2 and python 3 have a difference in print statement which is actually a mainly  used in anywhere for printing a statement.
                                    -: In the python 2 syntax of print is print ""
                                     -: In the python 3 syntax of print is print ();
  • Understand : Python 2 is easy to understand when python 3 is slowly understand by              developers.
  • Integer Division : In the python 2 division of two integer  number like 5/4 it gives a 1 because it  understand you want a integer number if  you want a value in float then input should be 5.0/4.0 it gives a actual output when in the python 3 give the input 5/4 it gives 1.25 not require to put a floating points.
  •  Unicode Strings : Python 3 stores strings as Unicode by default, whereas Python 2 requires you to mark a string with a “u” if you want to store it as Unicode.
  • Rising Exceptions : Python 2 and python 3 both have a different syntax for rising exceptions.
                                        - : In python 2 IOError,"Error Message"
                                        - : In python 3 IOError("Error Message") 
  • Syntax : Yes in the both versions of python syntax is different.

  • Conclusion : As a beginner python 2 is better. because it have a more libraries and easy                                  to learn.

Saturday, June 25, 2016

   What is python ??

  • python is a programming language.
  • it is similar to Java and C++ but syntax is different then Java and c++. 
  • it is based on OOPS concept (object oriented programming System).
  • it is mostly use for security purpose or gaming purpose and in the company for making a EDP using python mostly.
  • python is easy language but other side it is very difficult.