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

Chapter 2

Python is a powerful and easy-to-learn programming language developed by Guido Van Rossum in 1991, known for its versatility and open-source nature. While it has advantages such as being an object-oriented and interpreted language, it also has limitations like slower performance and fewer libraries compared to languages like C and Java. Users can work in Python using either interactive mode or script mode, with Anaconda being a favored distribution due to its preloaded packages and user-friendly tools like Jupyter Notebook.

Uploaded by

sakshamgoel.1703
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views

Chapter 2

Python is a powerful and easy-to-learn programming language developed by Guido Van Rossum in 1991, known for its versatility and open-source nature. While it has advantages such as being an object-oriented and interpreted language, it also has limitations like slower performance and fewer libraries compared to languages like C and Java. Users can work in Python using either interactive mode or script mode, with Anaconda being a favored distribution due to its preloaded packages and user-friendly tools like Jupyter Notebook.

Uploaded by

sakshamgoel.1703
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

2.

GETTING STARTED WITH PYTHON”

 About Python
 Python is a Programming language.
 It is developed by “Guido Van Rossum in February 1991.
 It easy-to-learn and powerful programming language.
 Advantage of Python
 Easy to use OO language
 Expression Language
 Interpreted Language
 Its Completeness cross Platform Language
 Free and open Source
 Variety of Usage/Application

Python –Some Minuse

Although python is very powerful yet simple language with so many advantages, it is not the
perfect Programming language. There are some area where Python does not offer much or
is not that capable

 Not the Fastest Language


 Lesser Libraries than C, Java, Perl
 Not Strong on Type-binding
 Not Easily Convertible

After installation of python we can work in Python in two ways :

 Interactive Mode(Python IDLE)


 In Script mode

Interactive Mode(Python IDLE)

Interactive mode of working means we type the command –one command at a time and the
Python executes the given command there and than and gives the output .

Eg if we type >>>> 2+5 than python return 7

Working in Script Mode(Python IDLE)

We can not save all the command in the form of program file and want to see all output lines
together rather than sandwiched between successive commands than Script mode is used .

Steps of script mode

 Click Start button All Programs Python 3.6x IDLE


 Click File New in IDLE Python Shell.
 In the New window that opens, we have to type the commands we want to save in
the form of a program(or script)
 Save file with .py extension with file Save command(Script mode)

Press F5 key to run the program

We favour ANACONDA PYTHON DISTRIBUTION for these simple reasons

 It is free and open source

 It comes preloaded with many packages and libraries

 It offers jupyter notebook (preferred choice for bloggers) and spyder IDE like
toolkits to write and python scripts and code interactively

Use of PRINT function

 To print or display output, python 3.x provides print() function.


 Some valid print() statements
o print(‘ The Golden Ratio’)

We favour ANACONDA PYTHON DISTRIBUTION for these simple reasons

 It is free and open source

 It comes preloaded with many packages and libraries


 It offers jupyter notebook (preferred choice for bloggers) and spyder IDE like
toolkits to write and python scripts and code interactively

Use of PRINT function

 To print or display output, python 3.x provides print() function.


 Some valid print() statements
o print(‘ The Golden Ratio’)
o print(“has same letters as”)
o print(‘the God Relation’

You might also like