/**/ Python & MySQL: GETTING STARTED WITH PYTHON (CLASS - XI) PART -2

Thursday, July 16, 2020

GETTING STARTED WITH PYTHON (CLASS - XI) PART -2

GETTING STARTED WITH PYTHON

Chapter – 3 (PART -2)

Class – 11

Installing Python

First check your system configuration the download according to your system.

You can download python distribution from the link given below:

https://www.python.org/download




Note:Download only that python distribution/MSI Installer, which is the best suited for the Operating system on which you want to install it.

After download the python:

Double-click the icon labeling the file <version>.exe

Popup window will appear:



Click on Run button


Setup popup window will appear



Note: Select the check both box

If the Python Installer finds an earlier version of Python installed on your system, the Install Now message will instead appear as Upgrade Now and the check box will not appear.

Next step: User Account Control popup window will appear



Click the Yes button.

Next step: A python <version> Setup popup window will appear with a Setup Progress message and a progress bar.



After some time, a new Python <version> Setup popup window will appear with a Setup was successfully message.



Click the Close button.

Work with Python

After installation of python, we can work on it in following ways:

1. in Interactive mode

2. in Script mode

1. In Interactive mode


Search the python.exe file in the drive in which it is installed. If found double click it to stary python in interactive mode.


For GUI Version

Click start buttonèAll Programsèpython<version> IDLE (Python GUI)


Uses of IDLE


2. in Script mode

Firstè Click Start buttonè All ProgramsèPython IDLE

SecondèClick FileèNew in IDLE Python Shell (New page will appear) the type program code and save file with .py extension

Example:

print(“Hello World”)

print(‘You can type any message’)

Then Save the file and Click RunèRun Module

It will execute all the commands of program file and display output in separate python shell window.


Note: This is the notes of Chapter -3 GETTING STARTED WITH PYTHON (SECOND PART). It is important for every students. By the help of these notes students can prepare for their Exam.


!!!Thank You!!!






No comments:

Post a Comment

Please do not any spam in the comment box.

CLASS XI HALF YEARLY QP WTH MS 2024

  Half Yearly Examination: 2024-25 Informatics Practices (065) Class- XI       Time Allowed: 3hrs                                     ...