0% found this document useful (0 votes)
9 views

1. Introduction

Uploaded by

hola99328
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views

1. Introduction

Uploaded by

hola99328
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 4

Introduction

Python is a general purpose high level programming language. Python was


developed by Guido Van Rossam in 1989 while working at National Research
Institute at Netherlands.

But officially Python was made available to public in 1991. The official Date of
Birth for Python is: Feb 20th 1991

1. Functional Programming Features from C

2. Object Oriented Programming Features from C++

3. Scripting Language Features from Perl and Shell Script

4. Modular Programming Features from Modula-3

Where we can use Python: We can use everywhere. The most common important
application areas are

1. For developing Desktop Applications

2. For developing web Applications

3. For developing database Applications

4. For Network Programming

5. For developing games

6. For Data Analysis Applications

7. For Machine Learning

8. For developing Artificial Intelligence Applications

9. For IOT

Features of Python:
1. Simple and easy to learn:
2. Freeware and Open Source:

3. High Level Programming language:

4. Platform Independent:

5. Portability:

6. Dynamically Typed:

7. Both Procedure Oriented and Object Oriented:

8. Interpreted:

9. Extensible:

10. Embedded:

11. Extensive Library:

Limitations of Python:
1. Performance wise not up to the mark b'z it is interpreted language.

2. Not using for mobile Applications

Flavors of Python:
1.CPython: It is the standard flavor of Python. It can be used to work with C
lanugage Applications

2. Jython or JPython: It is for Java Applications. It can run on JVM

3. IronPython: It is for C#.Net platform

4.PyPy: The main advantage of PyPy is performance will be improved because


JIT compiler is available inside PVM.

5.RubyPython For Ruby Platforms

6. AnacondaPython It is specially designed for handling large volume of data


processing.
Python Versions:
Python 1.0V introduced in Jan 1994

Python 2.0V introduced in October 2000

Python 3.0V introduced in December 2008

Note: Python 3 won't provide backward compatibility to Python2 i.e there is


no guarantee that Python2 programs will run in Python3

Installation:
Visit https://www.python.org/downloads/ and download the latest version.

At the time of this writing, it was Python 3.5.1 The installation is just like any
other Windows-based software.

Note that if your Windows version is pre-Vista, you should download Python
3.4 only as later versions require newer versions of Windows.

CAUTION: Make sure you check option Add Python 3.5 to PATH . To change
install location, click on Customize installation , then Next and enter

C:\python35 as install location. If not checked, check Add Python to


environment variables .

For Windows 7 and 8:

Right click on Computer from your desktop and select Properties or click Start
and choose Control Panel -> System and Security -> System .

Click on Advanced system settings on the left and then click on the Advanced
tab. At the bottom click on Environment Variables and under System
variables , look for the PATH variable, select and then press Edit .

Go to the end of the line under Variable value and append ;C:\Python35
(please verify that this folder exists, it will be different for newer versions of
Python) to the end of what is already there. Of course, use the appropriate
folder name. If the value was %SystemRoot%\system32; It will now become
%SystemRoot%\system32;C:\Python36 Click OK and you are done. No restart
is required, however you may have to close and reopen the command line.

Using A Source File


For other editors, open a new file hello.py and type this: print("hello world")
Where should you save the file? To any folder for which you know the location
of the folder.

If you don't understand what that means, create a new folder and use that
location to save and run all your Python programs:

/tmp/py on Mac OS X

/tmp/py on GNU/Linux

C:\py on Windows

To create the above folder (for the operating system you are using), use the
mkdir command in the terminal, for example, mkdir /tmp/py .

IMPORTANT: Always ensure that you give it the file extension of .py , for
example, foo.py . To run your Python program:

1. Open a terminal window (see the previous Installation chapter on how to do


that)

2. Change directory to where you saved the file, for example, cd /tmp/py

3. Run the program by entering the command python hello.py . The output is
as shown below. $ python hello.py hello world

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy