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

Python full coure with 5 examples

Rating
-
Sold
-
Pages
144
Uploaded on
23-03-2023
Written in
2022/2023

Its is a letest technology to use in computer science and its is vary esaly to understand and vary simple to code it. example :- print("hello").

Institution
Course

Content preview

Python Overview

What is Python ?
Python is a dynamically typed, General Purpose Programming Language that
supports an object-oriented programming approach as well as a functional
programming approach.
• Python is also an interpreted and high-level programming language.
• It was created by Guido Van Rossum in 1989.

Features of Python ?

Python is simple and easy to understand.
• It is Interpreted and platform-independent which makes debugging very
easy.
• Python is an open-source programming language.
• Python provides very big library support. Some of the popular libraries
include NumPy, Tensorflow, Selenium, OpenCV, etc.
• It is possible to integrate other programming languages within python.



Why is Python used for ?

Python is used in Data Visualization to create plots and
graphical representations.
• Python helps in Data Analytics to analyze and understand
raw data for insights and trends.

, • It is used in AI and Machine Learning to simulate human
behavior and to learn from past data without hard coding.
• It is used to create web applications.
• It can be used to handle databases.
• It is used in business and accounting to perform complex
mathematical operations along with quantitative and
qualitative analysis.



Installation & Getting Started

Steps to Install Python:

Visit the official python website:https://www.python.org/
1.Download the executable file based on your Operating
System and version specifications.
2.Run the executable file and complete the installation process.

Version:
After installation check the version of python by typing following command:
‘python –version’.


Starting Python:
Open Python IDE or any other text editor of your preferred choice. Let’s
understand python code execution with the simplest print statement. Type the
following in the IDE:

first programe:-

,print("Hello World !!!")


Now save the file with a .py extension and Run it. You will get the
following output:-


Hello World !!!



Installing Packages:

To install packages in Python, we use the pip command.
e.g. pip install "Package Name"

Following command installs pandas package in Python
pip install pandas
We will learn more about the pip command in the chapter dedicated to pip.


What is Syntax

In simplest words,Syntax is the arrangement of words and
phrases to create well-formed sentences in a language. In
the case of a computer language, the syntax is the structural
arrangement of comments, variables, numbers, operators,
statements, loops, functions, classes, objects, etc. which
helps us understand the meaning or semantics of a
computer language.

, For E.g. a ‘comment’ is used to explain the functioning of a block
of code. It starts with a ‘#’.
More on comments in the comments chapter.
For E.g. a block of code is identified by an ‘indentation’. Have a
look at the following code, here print(i) is said to be indented with
respect to the link above it. In simple words, indentation is the
addition of spaces before the line "print(i)"


for i in range(5):
print(i)



Python Comments
A comment is a part of the coding file that the programmer
does not want to execute, rather the programmer uses it to
either explain a block of code or to avoid the execution of a
specific part of code while testing.

Single-Line Comments:
To write a comment just add a ‘#’ at the start of the line.
Example 1:
#This is a 'Single-Line Comment'
print("This is a print statement."

Output:
This is a print statement.

Written for

Institution
Course

Document information

Uploaded on
March 23, 2023
Number of pages
144
Written in
2022/2023
Type
Class notes
Professor(s)
Anshuman singh
Contains
All classes

Subjects

$8.69
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
chauhanmanish

Get to know the seller

Seller avatar
chauhanmanish Exam Questions
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
3 year
Number of followers
0
Documents
4
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

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