100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
Python full coure with 5 examples $8.19   Add to cart

Class notes

Python full coure with 5 examples

 3 views  0 purchase
  • Course
  • Institution

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").

Preview 4 out of 144  pages

  • March 23, 2023
  • 144
  • 2022/2023
  • Class notes
  • Anshuman singh
  • All classes
avatar-seller
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.

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller chauhanmanish. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $8.19. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

79223 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$8.19
  • (0)
  Add to cart