0% found this document useful (0 votes)
2 views15 pages

2 - Setup of Python Programming

Uploaded by

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

2 - Setup of Python Programming

Uploaded by

ssuresh19747745
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd

Python Programming

Setup of Python
Programming
Learning
outcomes:
Setup of Python
Programming:

• Getting Python
• Installation of Python
• Getting started with the first
Python program
• Running the first Python
Program
• Introduction to Jupyter
Getting Python

The most up-to-date and current source code,


binaries, documentation, news, etc., is available on
the official website of Python:
http://www.python.org/.
You can download Python documentation from
www.python.org/doc/. The documentation is
available in HTML, PDF, and PostScript formats.
Installing Python
• Python distribution is available for a wide
variety of platforms.
• Python can be obtained from the Python
Software Foundation website at python.org.
Typically, that involves downloading the
appropriate installer for your operating system
and running it on your machine.
Installing Python
Here are the steps to install Python on Windows
operating system.

1. Open a Web browser and go to


http://www.python.org/download/
2. click on “Download Python 3.8.5” (You may see
different version name).
3. When the download is completed, double-click
the file and follow the instructions to install it.
4. Just accept the default settings, wait until the
install is finished, and you are done.
Installing Python

When Python is installed, a program called


IDLE is also installed along with it. It provides
graphical user interface to work with Python.
Getting started with the
first Python program
• Open IDLE
• To create a file in IDLE, go to File > New File
(Shortcut: Ctrl+N).
• Write Python code (you can copy the code
below for now) and save (Shortcut: Ctrl+S)
with .py file extension like: hello.py or your-
firstprogram.py
print ("Hello, World!")
Running the first Python
Program
• Before running the python program, you can
save it using Ctrl + S, OR go to File > Save.
• Now you can run the program. Go to Run > Run
module (Shortcut: F5) and you can see the
output.
• Congratulations, you've successfully run your
first Python program.

Output:
Hello, World!
Introduction to Jupyter
Notebook
• Jupyter Notebook is an open-source web application
that allows you to create and share documents that
contain live code, equations, visualizations, and
narrative text. It is widely used for interactive computing
and data analysis.
• Jupyter Notebooks provide an interactive
computing environment where you can write
and execute code in small, manageable
chunks called cells. This allows for an
iterative and exploratory approach to
programming and data analysis.
Introduction to Jupyter
Notebook
• Jupyter Notebook is an integral part of the
Anaconda distribution, which is a popular
platform for data science and scientific
computing.
• Anaconda is a distribution of Python and
other scientific computing packages that
aims to simplify package management and
deployment. It includes a wide range of
tools, libraries, and environments commonly
used in data science.
• Anaconda comes with Jupyter Notebook pre-
installed.
Introduction to Jupyter
Notebook
• To install Anaconda, you can follow these
general steps. Please note that the
installation process might vary slightly based
on your operating system (Windows, macOS,
or Linux).
• Installing Anaconda on Windows:
• Download Anaconda:
• Visit the Anaconda download page.
https://www.anaconda.com/download
• Choose the version of Anaconda that
matches your operating system (Windows).
• Download the installer.
Introduction to Jupyter
Notebook
• Run the Installer:
• Locate the downloaded installer file
• Double-click the installer to run it.
• Follow the Installation Wizard:
• The installation wizard will guide you through
the process.
• Accept the license agreement.
• Choose whether to install Anaconda for "Just
Me" or "All Users" and select the destination
folder.
• Optionally, check the box to add Anaconda to
your system's PATH variable (recommended).
Introduction to Jupyter
Notebook
• Install Anaconda:
• Click the "Install" button to begin the
installation.
• Complete the Installation:
• Once the installation is complete, you will
see a screen indicating that the installation
was successful.
Thank You

You might also like