SlideShare a Scribd company logo
1 of 21
Download to read offline
Jagannath Institute of Management Sciences
Vasant Kunj-II, New Delhi - 110070
Subject Name: BVITSD 205 : Programming And
Problem Solving Though Python
Department of Information Technology
Created By: Dr. Arpana Chaturvedi
@Dr. Arpana Chaturvedi
Subject: BVITSD 205 : Programming And
Problem Solving Though Python
Topic: Unit I- Installation of Python
@Dr. Arpana Chaturvedi
Unit-II Install Python on Windows
▰ Step 1: Download Python binaries from python.org
▰ Step 2: Install the binaries
▰ Step 3: Add Python to system environment variables
▰ Step 4: Install pip
▰ Step 5: [Optional] Install virtualenv using pip
@Dr. Arpana Chaturvedi
Unit-II 1. Download binaries from python.org
@Dr. Arpana Chaturvedi
Unit-II 1. Download binaries from python.org
@Dr. Arpana Chaturvedi
• Firstly, to install Python Windows you need to download the required Python
binaries.
• We recommend you to download Python latest (Python 3.6.3, currently)
installer for Windows.
• If you have a different OS, download binaries accordingly. You may choose an
x86-64 installer if you have a 64-bit system.
• Choose an x86 installer if you have a 32-bit system. But you can also click on
the download button in the page header.
Unit-I Python Setup Completed
▰
@Dr. Arpana Chaturvedi
Unit-II 2. Install Python binaries
▰ Next, you need to install the binaries you downloaded.
▰ Run the installer. It will show you two options.
▰ Install PIP Windows
▰ This is the default option. It also includes the IDLE
(Integrated Development Environment), pip, and the official
documentation. It also creates shortcuts.
▰ Customize Python Installation
@Dr. Arpana Chaturvedi
Unit-II This option allows you to choose the
features that you want.
▰
@Dr. Arpana Chaturvedi
You will see the following checkboxes:
• Documentation
• pip
• tcl/tk and IDLE- installs tkinter and the IDLE
• Python test suite- This installs the standard library test
suite of Python
Unit-I Python Installed Successfully
▰
@Dr. Arpana Chaturvedi
Unit-I Python Shell
@Dr. Arpana Chaturvedi
Unit-II Advanced Options while Installing
Python
▰
@Dr. Arpana Chaturvedi
Next, it gives you a set of advanced options:
• Install for all users
• Associate files with Python (requires the py
launcher)
• Create shortcuts for installed applications
• Add Python to environment variables
• Precompile standard library
• Download debugging symbols
• Download debug binaries (requires VS
2015 or later)
• You may also specify the location to install
the directory at.
• Other than these two options, the installer
also asks you if you want to add Python to
PATH.
Unit-II Step 3. Click ‘Install’ and wait till the
progress meter hits the end.
▰
@Dr. Arpana Chaturvedi
Unit-II 3. Add Python to system environment
variables
▰ Locate the Python directory on your computer and append the location to the
end of the PATH variable. It may look like this:
▰ C:UsersdellAppDataRoamingMicrosoftWindowsStart
MenuProgramsPython 3.9
▰ An environment variable holds values about the current environment. You need
it so you can access Python through the command line.
@Dr. Arpana Chaturvedi
Unit-II 5. [Optional] Install virtualenv using
pip
@Dr. Arpana Chaturvedi
This step is optional. If you
install virtualenv, you can create
a virtual Python environment.
Now you don’t need to worry
about version conflicts among
projects.
Unit-II - After You Install Python on Windows
@Dr. Arpana Chaturvedi
You can find a list of programs in the Start Menu.
Unit-II Ways to reach Python
1. Command Prompt
▰ You can run Python on the command prompt in two ways:
a. The Conventional way
▰ Search for Command Prompt, and type the following:
▰ python
▰ Now, you can use it as an interpreter.
@Dr. Arpana Chaturvedi
Unit-II Ways to reach Python
b. Using the Start Menu
▰ Open the Start menu. Click on Python 3.6 (32-bit). This will take you to the
command prompt for Python. You can now begin coding.
2. The IDLE
@Dr. Arpana Chaturvedi
Unit-II Ways to reach Python
▰ You can use the Integrated Development Environment to code in Python.
▰ If you use the Python Shell, you can use it as an interpreter. Otherwise, you can
create a new file to write a Python program.
▰ Later, you can save it and click ‘Run’ to run the program.
@Dr. Arpana Chaturvedi
Unit-II Ways to reach Python
@Dr. Arpana Chaturvedi
Output
Unit-I Output of Python Script
@Dr. Arpana Chaturvedi
Thank You !!

More Related Content

Similar to Introduction To Python.pdf

CrashCourse: Python with DataCamp and Jupyter for Beginners
CrashCourse: Python with DataCamp and Jupyter for BeginnersCrashCourse: Python with DataCamp and Jupyter for Beginners
CrashCourse: Python with DataCamp and Jupyter for BeginnersOlga Scrivner
 
Run Python on windows
Run Python on windowsRun Python on windows
Run Python on windowsSitthykun LY
 
Django Dev Environment Howto
Django Dev Environment HowtoDjango Dev Environment Howto
Django Dev Environment HowtoTzu-ping Chung
 
Python Requirements File How to Create Python requirements.txt
Python Requirements File How to Create Python requirements.txtPython Requirements File How to Create Python requirements.txt
Python Requirements File How to Create Python requirements.txtInexture Solutions
 
Python setup for dummies
Python setup for dummiesPython setup for dummies
Python setup for dummiesRajesh Rajamani
 
L2 - Install Python.pptx
L2 - Install Python.pptxL2 - Install Python.pptx
L2 - Install Python.pptxEloAOgardo
 
First python project
First python projectFirst python project
First python projectNeetu Jain
 
Intro to Web Development Using Python and Django
Intro to Web Development Using Python and DjangoIntro to Web Development Using Python and Django
Intro to Web Development Using Python and DjangoChariza Pladin
 
Introducing OWASP OWTF Workshop BruCon 2012
Introducing OWASP OWTF Workshop BruCon 2012Introducing OWASP OWTF Workshop BruCon 2012
Introducing OWASP OWTF Workshop BruCon 2012Abraham Aranguren
 
Quality of life through Unit Testing
Quality of life through Unit TestingQuality of life through Unit Testing
Quality of life through Unit TestingSian Lerk Lau
 
Python Dependency Management - PyconDE 2018
Python Dependency Management - PyconDE 2018Python Dependency Management - PyconDE 2018
Python Dependency Management - PyconDE 2018Patrick Muehlbauer
 
Lecture 2 introduction to python
Lecture 2  introduction to pythonLecture 2  introduction to python
Lecture 2 introduction to pythonalvin567
 
Australian Bioinformatics Conference (ABiC) 2014 Talk - Doing bioinformatics ...
Australian Bioinformatics Conference (ABiC) 2014 Talk - Doing bioinformatics ...Australian Bioinformatics Conference (ABiC) 2014 Talk - Doing bioinformatics ...
Australian Bioinformatics Conference (ABiC) 2014 Talk - Doing bioinformatics ...The University of Queensland
 
The New York Times: Sustainable Systems, Powered by Python
The New York Times: Sustainable Systems, Powered by PythonThe New York Times: Sustainable Systems, Powered by Python
The New York Times: Sustainable Systems, Powered by PythonAll Things Open
 

Similar to Introduction To Python.pdf (20)

CrashCourse: Python with DataCamp and Jupyter for Beginners
CrashCourse: Python with DataCamp and Jupyter for BeginnersCrashCourse: Python with DataCamp and Jupyter for Beginners
CrashCourse: Python with DataCamp and Jupyter for Beginners
 
Run Python on windows
Run Python on windowsRun Python on windows
Run Python on windows
 
Django Dev Environment Howto
Django Dev Environment HowtoDjango Dev Environment Howto
Django Dev Environment Howto
 
Python Requirements File How to Create Python requirements.txt
Python Requirements File How to Create Python requirements.txtPython Requirements File How to Create Python requirements.txt
Python Requirements File How to Create Python requirements.txt
 
Python setup for dummies
Python setup for dummiesPython setup for dummies
Python setup for dummies
 
L2 - Install Python.pptx
L2 - Install Python.pptxL2 - Install Python.pptx
L2 - Install Python.pptx
 
How to Install Python on Linux
How to Install Python on LinuxHow to Install Python on Linux
How to Install Python on Linux
 
Robot framework
Robot frameworkRobot framework
Robot framework
 
05 python.pdf
05 python.pdf05 python.pdf
05 python.pdf
 
First python project
First python projectFirst python project
First python project
 
OpenCV with Python
OpenCV with PythonOpenCV with Python
OpenCV with Python
 
Intro to Web Development Using Python and Django
Intro to Web Development Using Python and DjangoIntro to Web Development Using Python and Django
Intro to Web Development Using Python and Django
 
Introduction to robot framework
Introduction to robot frameworkIntroduction to robot framework
Introduction to robot framework
 
Introducing OWASP OWTF Workshop BruCon 2012
Introducing OWASP OWTF Workshop BruCon 2012Introducing OWASP OWTF Workshop BruCon 2012
Introducing OWASP OWTF Workshop BruCon 2012
 
Quality of life through Unit Testing
Quality of life through Unit TestingQuality of life through Unit Testing
Quality of life through Unit Testing
 
Python Dependency Management - PyconDE 2018
Python Dependency Management - PyconDE 2018Python Dependency Management - PyconDE 2018
Python Dependency Management - PyconDE 2018
 
Lecture 2 introduction to python
Lecture 2  introduction to pythonLecture 2  introduction to python
Lecture 2 introduction to python
 
Virtualenv
VirtualenvVirtualenv
Virtualenv
 
Australian Bioinformatics Conference (ABiC) 2014 Talk - Doing bioinformatics ...
Australian Bioinformatics Conference (ABiC) 2014 Talk - Doing bioinformatics ...Australian Bioinformatics Conference (ABiC) 2014 Talk - Doing bioinformatics ...
Australian Bioinformatics Conference (ABiC) 2014 Talk - Doing bioinformatics ...
 
The New York Times: Sustainable Systems, Powered by Python
The New York Times: Sustainable Systems, Powered by PythonThe New York Times: Sustainable Systems, Powered by Python
The New York Times: Sustainable Systems, Powered by Python
 

More from Arpana Awasthi

Unit 2 Part 1.2 Data Types.pdf
Unit 2 Part 1.2 Data Types.pdfUnit 2 Part 1.2 Data Types.pdf
Unit 2 Part 1.2 Data Types.pdfArpana Awasthi
 
Unit 2 Part 1 POLYMORPHISM.pdf
Unit 2 Part 1 POLYMORPHISM.pdfUnit 2 Part 1 POLYMORPHISM.pdf
Unit 2 Part 1 POLYMORPHISM.pdfArpana Awasthi
 
Unit 2 Part 1 Constructors.pdf
Unit 2 Part 1 Constructors.pdfUnit 2 Part 1 Constructors.pdf
Unit 2 Part 1 Constructors.pdfArpana Awasthi
 
Eclipse - GUI Palette
Eclipse - GUI Palette Eclipse - GUI Palette
Eclipse - GUI Palette Arpana Awasthi
 
Introduction to Eclipse
Introduction to Eclipse Introduction to Eclipse
Introduction to Eclipse Arpana Awasthi
 
Arrays 2 Dimensional Unit 2 Part 1.pdf
Arrays 2 Dimensional Unit 2 Part 1.pdfArrays 2 Dimensional Unit 2 Part 1.pdf
Arrays 2 Dimensional Unit 2 Part 1.pdfArpana Awasthi
 
Arrays Fundamentals Unit II
Arrays  Fundamentals Unit IIArrays  Fundamentals Unit II
Arrays Fundamentals Unit IIArpana Awasthi
 
Machine Learning: Need of Machine Learning, Its Challenges and its Applications
Machine Learning: Need of Machine Learning, Its Challenges and its ApplicationsMachine Learning: Need of Machine Learning, Its Challenges and its Applications
Machine Learning: Need of Machine Learning, Its Challenges and its ApplicationsArpana Awasthi
 
File Handling in C Part I
File Handling in C Part IFile Handling in C Part I
File Handling in C Part IArpana Awasthi
 
Role of machine learning in detection, prevention and treatment of cancer
Role of machine learning in detection, prevention and treatment of cancerRole of machine learning in detection, prevention and treatment of cancer
Role of machine learning in detection, prevention and treatment of cancerArpana Awasthi
 

More from Arpana Awasthi (12)

Unit 5 Part 1 Macros
Unit 5 Part 1 MacrosUnit 5 Part 1 Macros
Unit 5 Part 1 Macros
 
Unit 2 Part 1.2 Data Types.pdf
Unit 2 Part 1.2 Data Types.pdfUnit 2 Part 1.2 Data Types.pdf
Unit 2 Part 1.2 Data Types.pdf
 
Unit 2 Part 1 POLYMORPHISM.pdf
Unit 2 Part 1 POLYMORPHISM.pdfUnit 2 Part 1 POLYMORPHISM.pdf
Unit 2 Part 1 POLYMORPHISM.pdf
 
Unit 2 Part 1 Constructors.pdf
Unit 2 Part 1 Constructors.pdfUnit 2 Part 1 Constructors.pdf
Unit 2 Part 1 Constructors.pdf
 
Eclipse - GUI Palette
Eclipse - GUI Palette Eclipse - GUI Palette
Eclipse - GUI Palette
 
Introduction to Eclipse
Introduction to Eclipse Introduction to Eclipse
Introduction to Eclipse
 
Arrays 2 Dimensional Unit 2 Part 1.pdf
Arrays 2 Dimensional Unit 2 Part 1.pdfArrays 2 Dimensional Unit 2 Part 1.pdf
Arrays 2 Dimensional Unit 2 Part 1.pdf
 
Arrays Fundamentals Unit II
Arrays  Fundamentals Unit IIArrays  Fundamentals Unit II
Arrays Fundamentals Unit II
 
Machine Learning: Need of Machine Learning, Its Challenges and its Applications
Machine Learning: Need of Machine Learning, Its Challenges and its ApplicationsMachine Learning: Need of Machine Learning, Its Challenges and its Applications
Machine Learning: Need of Machine Learning, Its Challenges and its Applications
 
File Handling in C Part I
File Handling in C Part IFile Handling in C Part I
File Handling in C Part I
 
Programming language
Programming languageProgramming language
Programming language
 
Role of machine learning in detection, prevention and treatment of cancer
Role of machine learning in detection, prevention and treatment of cancerRole of machine learning in detection, prevention and treatment of cancer
Role of machine learning in detection, prevention and treatment of cancer
 

Recently uploaded

CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Bluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfBluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfngoud9212
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptxLBM Solutions
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 

Recently uploaded (20)

CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Bluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfBluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdf
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptx
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
The transition to renewables in India.pdf
The transition to renewables in India.pdfThe transition to renewables in India.pdf
The transition to renewables in India.pdf
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 

Introduction To Python.pdf

  • 1. Jagannath Institute of Management Sciences Vasant Kunj-II, New Delhi - 110070 Subject Name: BVITSD 205 : Programming And Problem Solving Though Python Department of Information Technology Created By: Dr. Arpana Chaturvedi @Dr. Arpana Chaturvedi
  • 2. Subject: BVITSD 205 : Programming And Problem Solving Though Python Topic: Unit I- Installation of Python @Dr. Arpana Chaturvedi
  • 3. Unit-II Install Python on Windows ▰ Step 1: Download Python binaries from python.org ▰ Step 2: Install the binaries ▰ Step 3: Add Python to system environment variables ▰ Step 4: Install pip ▰ Step 5: [Optional] Install virtualenv using pip @Dr. Arpana Chaturvedi
  • 4. Unit-II 1. Download binaries from python.org @Dr. Arpana Chaturvedi
  • 5. Unit-II 1. Download binaries from python.org @Dr. Arpana Chaturvedi • Firstly, to install Python Windows you need to download the required Python binaries. • We recommend you to download Python latest (Python 3.6.3, currently) installer for Windows. • If you have a different OS, download binaries accordingly. You may choose an x86-64 installer if you have a 64-bit system. • Choose an x86 installer if you have a 32-bit system. But you can also click on the download button in the page header.
  • 6. Unit-I Python Setup Completed ▰ @Dr. Arpana Chaturvedi
  • 7. Unit-II 2. Install Python binaries ▰ Next, you need to install the binaries you downloaded. ▰ Run the installer. It will show you two options. ▰ Install PIP Windows ▰ This is the default option. It also includes the IDLE (Integrated Development Environment), pip, and the official documentation. It also creates shortcuts. ▰ Customize Python Installation @Dr. Arpana Chaturvedi
  • 8. Unit-II This option allows you to choose the features that you want. ▰ @Dr. Arpana Chaturvedi You will see the following checkboxes: • Documentation • pip • tcl/tk and IDLE- installs tkinter and the IDLE • Python test suite- This installs the standard library test suite of Python
  • 9. Unit-I Python Installed Successfully ▰ @Dr. Arpana Chaturvedi
  • 10. Unit-I Python Shell @Dr. Arpana Chaturvedi
  • 11. Unit-II Advanced Options while Installing Python ▰ @Dr. Arpana Chaturvedi Next, it gives you a set of advanced options: • Install for all users • Associate files with Python (requires the py launcher) • Create shortcuts for installed applications • Add Python to environment variables • Precompile standard library • Download debugging symbols • Download debug binaries (requires VS 2015 or later) • You may also specify the location to install the directory at. • Other than these two options, the installer also asks you if you want to add Python to PATH.
  • 12. Unit-II Step 3. Click ‘Install’ and wait till the progress meter hits the end. ▰ @Dr. Arpana Chaturvedi
  • 13. Unit-II 3. Add Python to system environment variables ▰ Locate the Python directory on your computer and append the location to the end of the PATH variable. It may look like this: ▰ C:UsersdellAppDataRoamingMicrosoftWindowsStart MenuProgramsPython 3.9 ▰ An environment variable holds values about the current environment. You need it so you can access Python through the command line. @Dr. Arpana Chaturvedi
  • 14. Unit-II 5. [Optional] Install virtualenv using pip @Dr. Arpana Chaturvedi This step is optional. If you install virtualenv, you can create a virtual Python environment. Now you don’t need to worry about version conflicts among projects.
  • 15. Unit-II - After You Install Python on Windows @Dr. Arpana Chaturvedi You can find a list of programs in the Start Menu.
  • 16. Unit-II Ways to reach Python 1. Command Prompt ▰ You can run Python on the command prompt in two ways: a. The Conventional way ▰ Search for Command Prompt, and type the following: ▰ python ▰ Now, you can use it as an interpreter. @Dr. Arpana Chaturvedi
  • 17. Unit-II Ways to reach Python b. Using the Start Menu ▰ Open the Start menu. Click on Python 3.6 (32-bit). This will take you to the command prompt for Python. You can now begin coding. 2. The IDLE @Dr. Arpana Chaturvedi
  • 18. Unit-II Ways to reach Python ▰ You can use the Integrated Development Environment to code in Python. ▰ If you use the Python Shell, you can use it as an interpreter. Otherwise, you can create a new file to write a Python program. ▰ Later, you can save it and click ‘Run’ to run the program. @Dr. Arpana Chaturvedi
  • 19. Unit-II Ways to reach Python @Dr. Arpana Chaturvedi Output
  • 20. Unit-I Output of Python Script @Dr. Arpana Chaturvedi