You are on page 1of 15

Name: VIRAJ MAHADEV DIVEKAR

Enrollment no: 2201410577


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.
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
Machine learning in python
• Machine Learning is making the computer learn from studying
data and statistics.
• Machine Learning is a step into the direction of artificial
intelligence (AI).
• Machine Learning is a program that analyses data and learns to
predict the outcome.
Libraries

• There are several libraries and frameworks in Python that can be used for machine
learning, including:

 scikit-learn: This library provides a wide range of machine learning algorithms,


including supervised and unsupervised learning, and it is built on top of other libraries
such as NumPy and SciPy.

 TensorFlow: This library is an open-source machine learning framework developed


by Google, it is widely used for deep learning and other complex machine learning
tasks.

 Keras: A high-level neural networks API, written in Python and capable of running on
top of TensorFlow, CNTK, or Theano.
Reasons Why Python is Good for AI and ML

• A great library ecosystem


• Flexibility
• Platform independence
• Readability
• Good visualization options
• Growing popularity
Thank You…!

You might also like