Posts

Python Data Types

Image
Variables can hold values of different data types. Python is a dynamically typed language hence we need not define the type of the variable while declaring it. The interpreter implicitly binds the value with its type. Python enables us to check the type of the variable used in the program. Python provides us the  type()  function which returns the type of the variable passed. Consider the following example to define the values of different data types and checking its type. Standard data types A variable can hold different types of values. For example, a persons name must be stored as a string whereas its id must be stored as an integer. Python provides various standard data types that define the storage method on each of them. The data types defined in Python are given below. Numbers String List Tuple Dictionary In this section of the tutorial, we will give a brief introduction of the above data types. We will discuss each one of them in detail later i...

Python Variables

Image
Variable is a name which is used to refer memory location. Variable also known as identifier and used to hold value. In Python, we don't need to specify the type of variable because Python is a type infer language and smart enough to get variable type. Variable names can be a group of both letters and digits, but they have to begin with a letter or an underscore. It is recomended to use lowercase letters for variable name. Rahul and rahul both are two different variables. Identifier Naming Variables are the example of identifiers. An Identifier is used to identify the literals used in the program. The rules to name an identifier are given below. The first character of the variable must be an alphabet or underscore ( _ ). All the characters except the first character may be an alphabet of lower-case(a-z), upper-case (A-Z), underscore or digit (0-9). Identifier name must not contain any white-space, or special character (!, @, #, %, ^, &, *). Identifier name must...

Python Applications

Image
Python is known for its general purpose nature that makes it applicable in almost each domain of software development. Python as a whole can be used in any sphere of development. Here, we are specifing applications areas where python can be applied. 1) Web Applications We can use Python to develop web applications. It provides libraries to handle internet protocols such as HTML and XML, JSON, Email processing, request, beautifulSoup, Feedparser etc. It also provides Frameworks such as Django, Pyramid, Flask etc to design and delelop web based applications. Some important developments are: PythonWikiEngines, Pocoo, PythonBlogSoftware etc. 2) Desktop GUI Applications Python provides Tk GUI library to develop user interface in python based application. Some other useful toolkits wxWidgets, Kivy, pyqt that are useable on several platforms. The Kivy is popular for writing multitouch applications. 3) Software Development Python is helpful for software development process. It ...

Python History and Versions

Image
Python laid its foundation in the late 1980s. The implementation of Python was started in the December 1989 by  Guido Van Rossum  at CWI in Netherland. In February 1991, van Rossum published the code (labeled version 0.9.0) to alt.sources. In 1994, Python 1.0 was released with new features like: lambda, map, filter, and reduce. Python 2.0 added new features like: list comprehensions, garbage collection system. On December 3, 2008, Python 3.0 (also called "Py3K") was released. It was designed to rectify fundamental flaw of the language. ABC programming language  is said to be the predecessor of Python language which was capable of Exception Handling and interfacing with Amoeba Operating System. Python is influenced by following programming languages: ABC language. Modula-3 Python Version List Python programming language is being updated regularly with new features and supports. There are lots of updations in python versions, started from 1994 to current r...

Python

Image
Python tutorial provides basic and advanced concepts of Python. Our Python tutorial is designed for beginners and professionals. Python is a simple, easy to learn, powerful, high level and object-oriented programming language. Python is an interpreted scripting language also. Guido Van Rossum is known as the founder of python programming. Our Python tutorial includes all topics of Python Programming such as installation, control statements, Strings, Lists, Tuples, Dictionary, Modules, Exceptions, Date and Time, File I/O, Programs, etc. There are also given Python interview questions to help you better understand the Python Programming Python  is a general purpose, dynamic, high level and interpreted programming language. It supports Object Oriented programming approach to develop applications. It is simple and easy to learn and provides lots of high-level data structures. Python is  easy to learn  yet powerful and versatile scripting language which makes it ...