Getting Started With Python

     Python is an easy to learn, powerful, general purpose programming language. It has efficient high-level data structures and a simple but effective approach to object-oriented programming. Python’s elegant syntax and dynamic typing, together with its interpreted nature, make it an ideal language for scripting and rapid application development in many areas on most platforms.
    The Python interpreter and the extensive standard library are freely available in source or binary form for all major platforms from the Python Web site, https://www.python.org/ and may be freely distributed. The same site also contains distributions of and pointers to many free third party Python modules, programs and tools, and additional documentation.
    The Python interpreter is easily extended with new functions and data types implemented in C or C++ (or other languages callable from C). Python is also suitable as an extension language for customizable applications.
    Python is a clear and powerful object-oriented programming language, comparable to Perl, Ruby, Scheme, or Java.

Some programming-language features of Python are:
  • A variety of basic data types are available: numbers (floating point, complex, and unlimited-length long integers), strings (both ASCII and Unicode), lists, and dictionaries.
  • Python supports object-oriented programming with classes and multiple inheritance.
  • Code can be grouped into modules and packages.
  • The language supports raising and catching exceptions, resulting in cleaner error handling.
  • Data types are strongly and dynamically typed. Mixing incompatible types (e.g. attempting to add a string and a number) causes an exception to be raised, so errors are caught sooner.
  • Python contains advanced programming features such as generators and list comprehensions.
  • Python's automatic memory management frees you from having to manually allocate and free memory in your code.

Some of Python's notable features:
  • Uses an elegant syntax, making the programs you write easier to read.
  • Is an easy-to-use language that makes it simple to get your program working. This makes Python ideal for prototype development and other ad-hoc programming tasks, without compromising maintainability.
  • Comes with a large standard library that supports many common programming tasks such as connecting to web servers, searching text with regular expressions, reading and modifying files.
  • Python's interactive mode makes it easy to test short snippets of code. There's also a bundled development environment called IDLE.
  • Is easily extended by adding new modules implemented in a compiled language such as C or C++.
  • Can also be embedded into an application to provide a programmable interface.
  • Runs anywhere, including Mac OS X, Windows, Linux, and Unix.
  • Is free software in two senses. It doesn't cost anything to download or use Python, or to include it in your application. Python can also be freely modified and re-distributed, because while the language is copyrighted it's available under an open source license.

Applications of Python:

  • Application Domains
  • Database Access
  • Desktop GUIs
  • Education
  • Game and 3D Graphics
  • Network Programming
  • Scientific and Numeric
  • Software Development
  • Web Development

Getting Python:

Before you start, you will need Python on your computer, but you may not need to download it.
First of all check that you don't already have Python installed by entering python in a command line window. If you see a response from a Python interpreter it will include a version number in its initial display. Generally any recent version will do, as Python makes every attempt to maintain backwards compatibility.
There are currently two major versions of Python available: Python 2 and Python 3. You can install anyone.
If you're running Windows: the most stable Windows downloads are available from the Python for Windows.
If you are using a Mac: see the Python for Mac OS X. page.
For Red Hat: install the python2 and python2-devel packages.
For Debian or Ubuntu: install the python2.x and python2.x-dev packages.
OR See this OS Specific distributions from ActiveState .

Verifying Your Installation


Verify your Installation by typing python on your Terminal or Command prompt. After Installation, Their are various types to use python, we will start according to OS,
On Windows/Mac:
Their will be Desktop Shortcut to launch python. You will Something Like This.

Python 3.5.1 (v3.5.1:37a07cee5969, Dec 6 2015, 03:19:39) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>

On Linux/Unix distributions:
Open Terminal & Type python. You Should see Something Like This.

Python 2.7.5 (default, Aug 4 2017, 00:39:18)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-16)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>

Comments

Popular posts from this blog

Python List

The dir Function