0% found this document useful (0 votes)
135 views21 pages

Xi-Getting Started With Python

The document introduces Python as a versatile programming language developed by Guido Van Rossum in 1991, highlighting its ease of learning and various applications. It provides instructions for downloading and installing Python 3.6.5, as well as guidance on using both Interactive and Script modes for programming. Additionally, it includes basic arithmetic operations and assignment tasks for practice.

Uploaded by

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

Xi-Getting Started With Python

The document introduces Python as a versatile programming language developed by Guido Van Rossum in 1991, highlighting its ease of learning and various applications. It provides instructions for downloading and installing Python 3.6.5, as well as guidance on using both Interactive and Script modes for programming. Additionally, it includes basic arithmetic operations and assignment tasks for practice.

Uploaded by

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

Informatics Practices(065)

Class : XI (2024-25)
ShriKant Yadav
PGT (Info. Pract.)
Chapter : 2
Getting Started with
Python
Python (a Computer Language)

• As we know that in order to communicate with a computer


system, we need a language. This language may be C, C++,
Java, Python or any other computer language. Here we will
discuss PYTHON.
• Python was developed by Guido Van Rossum in 1991 when
he was working with National Research Institute of
Mathematics and Science in Netherland.
• Python was named from a comedy series “Monty Python’s
Flying Circus” telecasted on BBC.

• Python can be used as Object Oriented Language (OL) and


Procedural Oriented Language (POL).
Python (a Computer Language)
• Python is very easy learning language as most oaf its syntax seems to be like in

English.

• It is possible to get desired output in minimum instructions.

• It’s an Interpreted language.

• It’s a complete language in itself and it is very easy to download and install.

• It is a platform independent and portable language.

• It is Free Open Source.


Python (a Computer Language)
• It is possible to developvarious Appswith Python like–

• GUI Apps

• Web Apps

• Games

• DBMS Apps

• Scripting etc.
Python (a Computer Language)
HOW TO INSTALL?
• Python can be downloaded from www.python.org.
• It is available in two versions-
• Python 2.x
• Python 3.x
• Wewill download 3.6.5 here.
• Open www.python.org on any browser.
Python (a Computer Language)
HOW TO INSTALL?

• SCROLLDOWN.
Python (a Computer Language)
HOW TO INSTALL?

Click on Downloads.
Python (a Computer Language)
HOW TO INSTALL?

Click on Python3.6.5.
Python (a Computer Language)
HOW TO INSTALL?

Download installer as per your Operating System (32 bit or 64 bit).


Python (a Computer Language)
HOW TO INSTALL?
• Now run the downloaded setup, it will look like-

Don’t forget to
check this

• Click on Install now.


Python (a Computer Language)
HOW TOINSTALL?
• You can install python in this manner.
• After installation, we will open Python IDLE 3.6.5.

IDLE Python 3.6.5


Python (a Computer Language)
HOW TOINSTALL?
• On opening Python IDLE 3.6.5, a window will be opened which
will look like-
Python (a Computer Language)
HOW TO WORK?
• Wecan work in Python in two ways-
• Interactive Mode
• Script Mode
• Both have their ownstyle of working.
• Interactive mode works like a Command Interpreter as Shell
Prompt works in DOSPrompt or Linux..
• ( >>>) wecan execute any instruction of Python with this.
• We can run a complete program by writing in Script mode.
Python (a Computer Language)
Script mode
Python (a Computer Language)
Script mode

Click here to open a New File.


Python (a Computer Language)
Script mode

• This is a script window. We can write a


complete program here.
• Afterwards, we save the file as we have
saved the file with the name
MyFirstProgram.py here.
• Then in run menu, click on run module or
use F5 Key.
Python (a Computer Language)
Script mode

• As we click on run module or use F5, we


switch to interactive mode where we get
output of the program.
Arithmetic Operator
+ Addition c=a+b
- Subtraction c=a-b
* Subtraction c=a*b
/ Division c=a/b
// Floor Division c=a//b
% Remainder c=a%b
** Exponentiation c=a**b 2**3=8
Assignment-1

1- Accept two number from user and


find out sum of given no.
2- Accept length and width from
user and find out area of rectangle.
2- Accept five subject marks from
user and find out total and average.

You might also like