Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 15

Name: Harshada K.

Sonje
Enrollment no: 2101410049
Industry Name: Infeanet Digital Solution and Web Media
Subject: Python
Branch: AI & ML
Introduction to Python
 Python is a popular programming language.
 It was created by Guido van Rossum,
and released in 1991.
 It is used for - web development (server-side),
software development,
mathematics,
system scripting.
History of Python
 In late 1980’s Guido Van Russum began work on Python as
a side project while working at the Centrum Wiskunde &
Informatica (CWI) in the Netherlands.
 The first version, Python 0.9.0, was released in February
1991.
 In 1994, Python 1.0 is released with various improvements,
in 2000, Python 2.0 is released, introducing list
comprehensions and garbage collection.
Features of Python
 Free and Open Source
 Object-Oriented Language
 High-Level Language
 Python is a Portable language
 Frontend and backend development
 Large Standard Library
 Integrated
 Interpreted Language
 Case Sensitive
Python Datatypes
Python Operators
 Arithmetic Operators: +, -, *, /, %, //, **
 Bitwise Operators: &, |, ^, <<, >>
 Logical Operators: and, or, not
 Membership Operators: in, not in
 Identity Operators: is, not is
Strings in Python
 Python string is the collection of the characters surrounded by
single quotes, double quotes, or triple quotes.
 Each character is encoded in the ASCII or Unicode character. So
we can say that Python strings are also called the collection of
Unicode characters.
 In Python, strings can be created by enclosing the character or
the sequence of characters in the quotes. Python allows us to use
single quotes, double quotes, or triple quotes to create the string.
 str = "Hi Python !"
Tuples in python
 Tuple is a collection of Python objects much like a list. The
sequence of values stored in a tuple can be of any type,
and they are indexed by integers.
 In Python, tuples are created by placing a sequence of
values separated by ‘comma’ with or without the use of
parentheses for grouping the data sequence.
 Tuple1 = ()
print("Initial empty Tuple: ")
print(Tuple1)
Sets in Python
 In Python, a Set is an unordered collection of data types that is
iterable, mutable and has no duplicate elements.
 Sets can be created by using the built-in set() function with an
iterable object or a sequence by placing the sequence inside
curly braces, separated by a ‘comma’.
 A set cannot have mutable elements like a list or dictionary, as it
is mutable.
List in python
 In Python, the sequence of various data types is stored in a list.
 A list is a collection of different kinds of values or items.
 Since Python lists are mutable, we can change their elements
after forming.
 The comma (,) and the square brackets [enclose the List's items]
serve as separators.
 The list element can be accessed via the index.
Dictionaries in python
• Dictionary in Python is a collection of keys values, used to store
data values like a map, which, unlike other data types which
hold only a single value as an element.
• In Python, a dictionary can be created by placing a sequence of
elements within curly {} braces, separated by ‘comma’.
• Dictionary keys are case sensitive, the same name but different
cases of Key will be treated distinctly.
Flow Control
Application Programming Interface
• An API (Application Programming Interface) is a set of rules
and protocols that allows different software applications to
communicate with each other.
• APIs serve as a bridge between different software components,
allowing them to send and receive data or requests.
• APIs provide an abstraction layer that hides the complexity of
an application's underlying code and exposes only the necessary
functionalities.
Streamlit
 Streamlit is an open-source Python library that simplifies the process
of creating interactive web applications for data visualization,
machine learning models, and more.
 With just a few lines of Python code, you can turn data scripts into
shareable web apps.
 Streamlit is particularly popular among data scientists and
developers who want to quickly prototype and showcase their work
without the need for extensive web development knowledge
Thank You…!

You might also like