Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Class notes

notes on python

Rating
-
Sold
-
Pages
5
Uploaded on
18-05-2023
Written in
2022/2023

Python is a high-level, interpreted programming language that emphasizes code readability and simplicity. It was created by Guido van Rossum and first released in 1991. Python supports multiple programming paradigms, including procedural, object-oriented, and functional programming, making it versatile and flexible. Here are some key characteristics and features of Python: Readability: Python's syntax is designed to be easy to read and understand, using indentation and whitespace to delimit code blocks, rather than relying on explicit braces or keywords. This feature promotes code consistency and improves code readability. Easy to Learn: Python has a relatively simple and straightforward syntax compared to many other programming languages. Its readability and extensive documentation make it accessible to beginners, making it a popular choice for programming education and introductory courses.

Show more Read less
Institution
Course

Content preview

What is Data Science?
Data science is the process of extracting insights from data using technology. It involves using
advanced tools and programming languages such as Python and R to analyze big data, which is
not feasible with traditional tools like Microsoft Excel. A typical data science project involves a
business problem, data collection, data cleaning and exploration, building a model, and
deploying the model to production.

Example: Restaurant Business

For instance, let's consider a restaurant business with locations in New York and San Diego. The
local managers send monthly sales data in an Excel file to the business owner. By plotting a side-
by-side bar chart of the monthly sales numbers, the business owner can identify that the New
York restaurant is not performing well during summer months. This visualization can help the
owner make a business decision to run a special promotion during the summer in the New York
restaurant.

Tools Used in Data Science

For data storage and distributed computing, data scientists use technologies like Apache Hadoop
and Apache Spark. For visualization, they use tools like Tableau, Power BI, Matplotlib, and
Jupiter Notebook. For deep learning, they might use Tensorflow, PyTorch, or Scikit-learn.

Real-Life Examples

Data science is used heavily in various industries, including:

 Amazon: product recommendations and video recommendations
 Healthcare: analyzing data from wearable devices to predict heart disease or respiratory
problems
 Finance: fraud detection using advanced algorithms
 Shipping: finding the best route between two destinations




1. How to Install Python 3.5 on Windows
To begin, go to the Python.org website. Click on the "Downloads" button and select "Python
3.5".

If you prefer to install previous versions, such as 2.7.11, you can click on the corresponding
download button. Once you have selected Python 3.5, click on "Download".

, If you are using Firefox or Internet Explorer, the download will be saved in a different location.
After downloading, click on the setup file and select "Add Python 3.5 to PATH". This is an
important step.

Choose "Customized Installation" and select "Install for all users". This will install Python to the
default location.

After a few minutes, Python should be successfully installed. You can verify this by running
IDLE or the Windows Command Prompt. To open IDLE, click on the "Start" button and type
"IDLE". To increase font size, go to "Options" and select "Configure IDLE".

To write a simple Python program, open IDLE and type in your code. For example, you can use
Python as a calculator or print a statement. IDLE is a good editor for beginners and allows you to
write simple Python programs.

If you are using Windows Command Prompt, type "python" to access the Python shell.
However, IDLE is preferred as it has syntax highlighting and other cool features.

If you encounter issues with Windows not recognizing the Python command, check that the
Python installation directory is present in the system path. You can manually add the path to the
system environment variables.




2. Variables in python [Python 3 Programming]


Variables in Python
Variables are containers that can hold any type of data such as numerical data, tax data, etc. They
are used to store and manipulate data in Python. For example, you can use them to track your
monthly expenses in Python programming language.

Creating Variables

To create a variable, you need to use an assignment operator. The left-hand side of the operator
is the variable name, and the right-hand side is the value. For instance, you can create variables
for your monthly expenses:

 Rent: $1220

Written for

Course

Document information

Uploaded on
May 18, 2023
Number of pages
5
Written in
2022/2023
Type
Class notes
Professor(s)
Aniket chavan
Contains
All classes

Subjects

$21.79
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
aniketchavan

Get to know the seller

Seller avatar
aniketchavan Indira College of Engineering and Management
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
2 year
Number of followers
0
Documents
2
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions