Introduction to Python for Data Science and Machine Learning ParrotAI
This document provides an introduction and overview of Python for data science and machine learning. It covers basics of Python including what Python is, its features, why it is useful for data science. It also discusses installing Python, using the IDLE and Jupyter Notebook environments. The document then covers Python basics like variables, data types, operators, decision making and loops. Finally, it discusses collection data types like lists, tuples and dictionaries and functions in Python.
Python (Data Analysis) cleaning and visualizeIruolagbePius
This document provides an overview of Python programming language. It discusses Python features, uses, variables, data types, operators, decision making statements, and loops. Specifically, it covers:
- Python features like being easy to learn and read, having an interactive mode, and being portable.
- Python variables, naming rules, and basic data types like numbers, strings, booleans.
- Operators for arithmetic, comparison, assignment, and logic.
- Conditional statements like if, elif, else for decision making.
- Looping structures like while and for loops, with examples of using break, continue, else, range().
- How to write comments, take user input, and
The document provides an overview of the Python programming language. It discusses what Python is, its history and naming, features like being dynamically typed and interpreted, popular applications like web development, machine learning, and its architecture. It also covers Python constructs like variables, data types, operators, and strings. The document compares Python to other languages and provides examples of common Python concepts.
Basic concept of Python.pptx includes design tool, identifier, variables.supriyasarkar38
This document discusses Python programming concepts including data types, variables, operators, and functions. It provides examples of Python syntax for writing and executing code as well as built-in data types like strings, integers, and lists. Key concepts covered include variables, data type casting, comments, arithmetic and comparison operators, and functions.
Python was named after the British comedy group Monty Python by its creator Guido van Rossum. It is a high-level, general-purpose programming language that is easy to learn and use. Python code can run on many platforms like Windows, Linux, and Mac. It has a large standard library and rich set of tools and modules for rapid application development. Python supports multiple programming paradigms like object-oriented, functional, and procedural programming. It is widely used in areas like machine learning, web development, GUI programming, software development, and IoT. Some major companies that use Python extensively include Netflix, Google, Facebook, Amazon, and YouTube.
python programming language Python is a high-level, interpreted, general-purpose programming language. Its design philosophy emphasizes code readability with the use of significant indentation. INTRODUCTION
HISTORY
USES OF PYTHON
FEATURES OF PYTHON
PYTHON PROJECT FOR BEGINNERS
PYTHON PROGRAM
KEY CHANGES IN PYTHON
BASIC SYNTAX
VARIABLE
NUMBERS
STANDARD TYPE HIERARCHY
STRING
CONDITIONALS
FOR LOOP
FUNCTION
KEYWORDS
WHY PYTHON ?
DIFFERENTIATE
EXAMPLES
Introduction to Python for Data Science and Machine Learning ParrotAI
This document provides an introduction and overview of Python for data science and machine learning. It covers basics of Python including what Python is, its features, why it is useful for data science. It also discusses installing Python, using the IDLE and Jupyter Notebook environments. The document then covers Python basics like variables, data types, operators, decision making and loops. Finally, it discusses collection data types like lists, tuples and dictionaries and functions in Python.
Python (Data Analysis) cleaning and visualizeIruolagbePius
This document provides an overview of Python programming language. It discusses Python features, uses, variables, data types, operators, decision making statements, and loops. Specifically, it covers:
- Python features like being easy to learn and read, having an interactive mode, and being portable.
- Python variables, naming rules, and basic data types like numbers, strings, booleans.
- Operators for arithmetic, comparison, assignment, and logic.
- Conditional statements like if, elif, else for decision making.
- Looping structures like while and for loops, with examples of using break, continue, else, range().
- How to write comments, take user input, and
The document provides an overview of the Python programming language. It discusses what Python is, its history and naming, features like being dynamically typed and interpreted, popular applications like web development, machine learning, and its architecture. It also covers Python constructs like variables, data types, operators, and strings. The document compares Python to other languages and provides examples of common Python concepts.
Basic concept of Python.pptx includes design tool, identifier, variables.supriyasarkar38
This document discusses Python programming concepts including data types, variables, operators, and functions. It provides examples of Python syntax for writing and executing code as well as built-in data types like strings, integers, and lists. Key concepts covered include variables, data type casting, comments, arithmetic and comparison operators, and functions.
Python was named after the British comedy group Monty Python by its creator Guido van Rossum. It is a high-level, general-purpose programming language that is easy to learn and use. Python code can run on many platforms like Windows, Linux, and Mac. It has a large standard library and rich set of tools and modules for rapid application development. Python supports multiple programming paradigms like object-oriented, functional, and procedural programming. It is widely used in areas like machine learning, web development, GUI programming, software development, and IoT. Some major companies that use Python extensively include Netflix, Google, Facebook, Amazon, and YouTube.
python programming language Python is a high-level, interpreted, general-purpose programming language. Its design philosophy emphasizes code readability with the use of significant indentation. INTRODUCTION
HISTORY
USES OF PYTHON
FEATURES OF PYTHON
PYTHON PROJECT FOR BEGINNERS
PYTHON PROGRAM
KEY CHANGES IN PYTHON
BASIC SYNTAX
VARIABLE
NUMBERS
STANDARD TYPE HIERARCHY
STRING
CONDITIONALS
FOR LOOP
FUNCTION
KEYWORDS
WHY PYTHON ?
DIFFERENTIATE
EXAMPLES
The document provides an overview of how to learn the basics of Python programming, including identifiers, data types, decisions, looping, functions, modules, and file handling. It begins with an introduction to the author and their background/expertise. It then covers Python identifiers and reserved words, basic data types like numbers, strings, lists, tuples and dictionaries. It discusses decision making statements like if/else and loops like for/while. It introduces functions and modules for organizing code. Finally, it covers opening, writing and closing files in Python. The document aims to provide everything needed to get started with Python programming.
This document provides an overview of Python basics training. It covers installing Python, running Python code through various methods like the command line, IDLE, and Jupyter notebooks. It also discusses Python syntax, variables, data types, operators, conditional statements, and loops. Key Python data types include integers, floats, strings, lists, and dictionaries. The document is intended as an introduction to Python for beginners.
The document provides an overview of the Python programming language. It discusses that Python is an interpreted, interactive, object-oriented language created by Guido van Rossum in the late 1980s. It describes Python as high-level, portable, and has an extensive standard library. The document then covers Python variables and data types, basic operators, and provides examples of Python code, including defining variables, strings, lists, tuples, and dictionaries.
The document provides an overview of the Python programming language. It discusses that Python is an interpreted, interactive, object-oriented language created by Guido van Rossum in the late 1980s. It describes Python as high-level, portable, and has an extensive standard library. The document then covers Python variables and data types, basic operators, and provides examples of Python code, including defining functions and conditionals.
After the end of lesson you will be able to learn Python basics-What Python is? Its releases. Where we can use Python? Python Features. Tokens, comments variables etc... In out next PPT you will learn how to input and get output in Python
Python can be used for a variety of applications including web development, scientific computing, education, desktop GUIs, and software development. It is commonly used to build web applications using frameworks like Django and Flask, for scientific computing tasks using libraries like NumPy and SciPy, and for general software development tasks like build automation and testing. Python supports a range of data types including integers, floats, complex numbers, lists, dictionaries, sets, and strings. It can be used to write functions and programs to solve problems across many domains.
This document provides an introduction and overview of the Python programming language course CSE 120 handled by G.Gandhi Jaba Kumar. It discusses that Python is an interpreted, object-oriented, and interactive programming language used for web development, software development, mathematics, and system scripting. The document then covers Python syntax including indentation, comments, keywords, variables, data types, operators, and basic programming concepts like conditionals and loops. It provides examples to illustrate Python code and best practices.
This document provides an overview of the Python programming language. It discusses that Python is an interpreted, interactive, object-oriented language and was created by Guido van Rossum. It then covers getting and installing Python, writing basic Python programs, variables and data types, operators, control flow statements like if/else, and other core concepts like functions, modules, and exceptions.
This document provides an introduction to Python programming. It discusses the history and origins of Python, why it is useful for programming, its core features like object-oriented programming and indentation, basic syntax like variables, data types, and keywords. It also covers strings, booleans, and how to assign values and combine text in strings.
Python is an interpreted, object-oriented, high-level programming language with dynamic typing and dynamic binding. Its simple, easy to learn syntax emphasizes readability and it uses significant indentation to delimit code blocks rather than curly braces or keywords. Python supports modules and packages, which encourages program modularity and code reuse. It also has a large standard library.
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.
What can Python do?
Python can be used on a server to create web applications.
Python can be used alongside software to create workflows.
Python can connect to database systems. It can also read and modify files.
Python can be used to handle big data and perform complex mathematics.
Python can be used for rapid prototyping, or for production-ready software development.
- Why Python?
Python works on different platforms (Windows, Mac, Linux, Raspberry Pi, etc).
Python has a simple syntax similar to the English language.
Python has syntax that allows developers to write programs with fewer lines than some other programming languages.
Python runs on an interpreter system, meaning that code can be executed as soon as it is written. This means that prototyping can be very quick.
Python can be treated in a procedural way, an object-oriented way or a functional way.
- what we learn:
1- Python Install.
2- Python Comments.
3- Python Variables.
4- Python Data Types.
5- Python Numbers.
Guido van Rossum emphasized the importance of code readability in Python. He introduced significant whitespace as a core feature of the language, aiming to enforce a clean and readable code structure. This emphasis on readability is evident in the presentation's mention of Python's design philosophy that highlights code readability.Van Rossum emphasized the importance of Python in enabling developers to write clear and logical code, which is scalable for both small and large-scale projects. The presentation mentions Python's language constructs and object-oriented approach designed to assist programmers in achieving this goal.
Though not explicitly attributed to van Rossum, Python's dynamically typed nature and built-in garbage collection contribute to its ease of use and simplification of memory management, reflecting the language's user-centric design principles.
Overall, Guido van Rossum's vision and design choices for Python resonate with the attributes and philosophies outlined in the presentation. His influence is seen in Python's core principles, which prioritize readability, versatility, and ease of use for programmers.
This document provides an overview of Python programming concepts including the basics of Python, strings, control structures like if/else statements and loops, and input/output functions. It discusses what a program and programming are, gives an introduction to Python including its uses and installation. It then covers key Python concepts like variables, data types, operators, functions, modules and object-oriented programming.
The document discusses the Python programming language. It describes Python as a popular programming language created by Guido van Rossum in 1991. It is commonly used for web development, software development, mathematics, and system scripting. The document then provides further details on Python syntax, including how Python uses indentation to define scope rather than curly brackets, and how it supports variables, data types, comments, and global versus local variables. It also encourages practicing Python through examples in the command line and .py files.
ZENUS INFOTECH is best Python Training institute in Roorkee and an ISO 9001:2008 Certified Engineer’s Training Company in Roorkee & provides training to the B.E./B.TECH/DIPLOMA/MCA/BCA and related field students in 35+ cutting-edge technologies like AutoCAD, Solid-Works, CATIA, REVIT, Pro-E, UG-NX .NET, JAVA, PHP, GST Tally and Wireless & Telecommunication and many more.
The document provides an overview of the Python programming language. It discusses why Python is useful for students and professionals, its major features like being object-oriented and having a large standard library. The document also covers Python's history, how to install it and set the environment variables, basic syntax like variables and data types, operators, and common programming constructs like conditionals and loops.
বাংলাদেশের অর্থনৈতিক সমীক্ষা ২০২৪ [Bangladesh Economic Review 2024 Bangla.pdf] কম্পিউটার , ট্যাব ও স্মার্ট ফোন ভার্সন সহ সম্পূর্ণ বাংলা ই-বুক বা pdf বই " সুচিপত্র ...বুকমার্ক মেনু 🔖 ও হাইপার লিংক মেনু 📝👆 যুক্ত ..
আমাদের সবার জন্য খুব খুব গুরুত্বপূর্ণ একটি বই ..বিসিএস, ব্যাংক, ইউনিভার্সিটি ভর্তি ও যে কোন প্রতিযোগিতা মূলক পরীক্ষার জন্য এর খুব ইম্পরট্যান্ট একটি বিষয় ...তাছাড়া বাংলাদেশের সাম্প্রতিক যে কোন ডাটা বা তথ্য এই বইতে পাবেন ...
তাই একজন নাগরিক হিসাবে এই তথ্য গুলো আপনার জানা প্রয়োজন ...।
বিসিএস ও ব্যাংক এর লিখিত পরীক্ষা ...+এছাড়া মাধ্যমিক ও উচ্চমাধ্যমিকের স্টুডেন্টদের জন্য অনেক কাজে আসবে ...
The document provides an overview of how to learn the basics of Python programming, including identifiers, data types, decisions, looping, functions, modules, and file handling. It begins with an introduction to the author and their background/expertise. It then covers Python identifiers and reserved words, basic data types like numbers, strings, lists, tuples and dictionaries. It discusses decision making statements like if/else and loops like for/while. It introduces functions and modules for organizing code. Finally, it covers opening, writing and closing files in Python. The document aims to provide everything needed to get started with Python programming.
This document provides an overview of Python basics training. It covers installing Python, running Python code through various methods like the command line, IDLE, and Jupyter notebooks. It also discusses Python syntax, variables, data types, operators, conditional statements, and loops. Key Python data types include integers, floats, strings, lists, and dictionaries. The document is intended as an introduction to Python for beginners.
The document provides an overview of the Python programming language. It discusses that Python is an interpreted, interactive, object-oriented language created by Guido van Rossum in the late 1980s. It describes Python as high-level, portable, and has an extensive standard library. The document then covers Python variables and data types, basic operators, and provides examples of Python code, including defining variables, strings, lists, tuples, and dictionaries.
The document provides an overview of the Python programming language. It discusses that Python is an interpreted, interactive, object-oriented language created by Guido van Rossum in the late 1980s. It describes Python as high-level, portable, and has an extensive standard library. The document then covers Python variables and data types, basic operators, and provides examples of Python code, including defining functions and conditionals.
After the end of lesson you will be able to learn Python basics-What Python is? Its releases. Where we can use Python? Python Features. Tokens, comments variables etc... In out next PPT you will learn how to input and get output in Python
Python can be used for a variety of applications including web development, scientific computing, education, desktop GUIs, and software development. It is commonly used to build web applications using frameworks like Django and Flask, for scientific computing tasks using libraries like NumPy and SciPy, and for general software development tasks like build automation and testing. Python supports a range of data types including integers, floats, complex numbers, lists, dictionaries, sets, and strings. It can be used to write functions and programs to solve problems across many domains.
This document provides an introduction and overview of the Python programming language course CSE 120 handled by G.Gandhi Jaba Kumar. It discusses that Python is an interpreted, object-oriented, and interactive programming language used for web development, software development, mathematics, and system scripting. The document then covers Python syntax including indentation, comments, keywords, variables, data types, operators, and basic programming concepts like conditionals and loops. It provides examples to illustrate Python code and best practices.
This document provides an overview of the Python programming language. It discusses that Python is an interpreted, interactive, object-oriented language and was created by Guido van Rossum. It then covers getting and installing Python, writing basic Python programs, variables and data types, operators, control flow statements like if/else, and other core concepts like functions, modules, and exceptions.
This document provides an introduction to Python programming. It discusses the history and origins of Python, why it is useful for programming, its core features like object-oriented programming and indentation, basic syntax like variables, data types, and keywords. It also covers strings, booleans, and how to assign values and combine text in strings.
Python is an interpreted, object-oriented, high-level programming language with dynamic typing and dynamic binding. Its simple, easy to learn syntax emphasizes readability and it uses significant indentation to delimit code blocks rather than curly braces or keywords. Python supports modules and packages, which encourages program modularity and code reuse. It also has a large standard library.
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.
What can Python do?
Python can be used on a server to create web applications.
Python can be used alongside software to create workflows.
Python can connect to database systems. It can also read and modify files.
Python can be used to handle big data and perform complex mathematics.
Python can be used for rapid prototyping, or for production-ready software development.
- Why Python?
Python works on different platforms (Windows, Mac, Linux, Raspberry Pi, etc).
Python has a simple syntax similar to the English language.
Python has syntax that allows developers to write programs with fewer lines than some other programming languages.
Python runs on an interpreter system, meaning that code can be executed as soon as it is written. This means that prototyping can be very quick.
Python can be treated in a procedural way, an object-oriented way or a functional way.
- what we learn:
1- Python Install.
2- Python Comments.
3- Python Variables.
4- Python Data Types.
5- Python Numbers.
Guido van Rossum emphasized the importance of code readability in Python. He introduced significant whitespace as a core feature of the language, aiming to enforce a clean and readable code structure. This emphasis on readability is evident in the presentation's mention of Python's design philosophy that highlights code readability.Van Rossum emphasized the importance of Python in enabling developers to write clear and logical code, which is scalable for both small and large-scale projects. The presentation mentions Python's language constructs and object-oriented approach designed to assist programmers in achieving this goal.
Though not explicitly attributed to van Rossum, Python's dynamically typed nature and built-in garbage collection contribute to its ease of use and simplification of memory management, reflecting the language's user-centric design principles.
Overall, Guido van Rossum's vision and design choices for Python resonate with the attributes and philosophies outlined in the presentation. His influence is seen in Python's core principles, which prioritize readability, versatility, and ease of use for programmers.
This document provides an overview of Python programming concepts including the basics of Python, strings, control structures like if/else statements and loops, and input/output functions. It discusses what a program and programming are, gives an introduction to Python including its uses and installation. It then covers key Python concepts like variables, data types, operators, functions, modules and object-oriented programming.
The document discusses the Python programming language. It describes Python as a popular programming language created by Guido van Rossum in 1991. It is commonly used for web development, software development, mathematics, and system scripting. The document then provides further details on Python syntax, including how Python uses indentation to define scope rather than curly brackets, and how it supports variables, data types, comments, and global versus local variables. It also encourages practicing Python through examples in the command line and .py files.
ZENUS INFOTECH is best Python Training institute in Roorkee and an ISO 9001:2008 Certified Engineer’s Training Company in Roorkee & provides training to the B.E./B.TECH/DIPLOMA/MCA/BCA and related field students in 35+ cutting-edge technologies like AutoCAD, Solid-Works, CATIA, REVIT, Pro-E, UG-NX .NET, JAVA, PHP, GST Tally and Wireless & Telecommunication and many more.
The document provides an overview of the Python programming language. It discusses why Python is useful for students and professionals, its major features like being object-oriented and having a large standard library. The document also covers Python's history, how to install it and set the environment variables, basic syntax like variables and data types, operators, and common programming constructs like conditionals and loops.
Similar to An overview on python commands for solving the problems (20)
বাংলাদেশের অর্থনৈতিক সমীক্ষা ২০২৪ [Bangladesh Economic Review 2024 Bangla.pdf] কম্পিউটার , ট্যাব ও স্মার্ট ফোন ভার্সন সহ সম্পূর্ণ বাংলা ই-বুক বা pdf বই " সুচিপত্র ...বুকমার্ক মেনু 🔖 ও হাইপার লিংক মেনু 📝👆 যুক্ত ..
আমাদের সবার জন্য খুব খুব গুরুত্বপূর্ণ একটি বই ..বিসিএস, ব্যাংক, ইউনিভার্সিটি ভর্তি ও যে কোন প্রতিযোগিতা মূলক পরীক্ষার জন্য এর খুব ইম্পরট্যান্ট একটি বিষয় ...তাছাড়া বাংলাদেশের সাম্প্রতিক যে কোন ডাটা বা তথ্য এই বইতে পাবেন ...
তাই একজন নাগরিক হিসাবে এই তথ্য গুলো আপনার জানা প্রয়োজন ...।
বিসিএস ও ব্যাংক এর লিখিত পরীক্ষা ...+এছাড়া মাধ্যমিক ও উচ্চমাধ্যমিকের স্টুডেন্টদের জন্য অনেক কাজে আসবে ...
A review of the growth of the Israel Genealogy Research Association Database Collection for the last 12 months. Our collection is now passed the 3 million mark and still growing. See which archives have contributed the most. See the different types of records we have, and which years have had records added. You can also see what we have for the future.
Walmart Business+ and Spark Good for Nonprofits.pdfTechSoup
"Learn about all the ways Walmart supports nonprofit organizations.
You will hear from Liz Willett, the Head of Nonprofits, and hear about what Walmart is doing to help nonprofits, including Walmart Business and Spark Good. Walmart Business+ is a new offer for nonprofits that offers discounts and also streamlines nonprofits order and expense tracking, saving time and money.
The webinar may also give some examples on how nonprofits can best leverage Walmart Business+.
The event will cover the following::
Walmart Business + (https://business.walmart.com/plus) is a new shopping experience for nonprofits, schools, and local business customers that connects an exclusive online shopping experience to stores. Benefits include free delivery and shipping, a 'Spend Analytics” feature, special discounts, deals and tax-exempt shopping.
Special TechSoup offer for a free 180 days membership, and up to $150 in discounts on eligible orders.
Spark Good (walmart.com/sparkgood) is a charitable platform that enables nonprofits to receive donations directly from customers and associates.
Answers about how you can do more with Walmart!"
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UPRAHUL
This Dissertation explores the particular circumstances of Mirzapur, a region located in the
core of India. Mirzapur, with its varied terrains and abundant biodiversity, offers an optimal
environment for investigating the changes in vegetation cover dynamics. Our study utilizes
advanced technologies such as GIS (Geographic Information Systems) and Remote sensing to
analyze the transformations that have taken place over the course of a decade.
The complex relationship between human activities and the environment has been the focus
of extensive research and worry. As the global community grapples with swift urbanization,
population expansion, and economic progress, the effects on natural ecosystems are becoming
more evident. A crucial element of this impact is the alteration of vegetation cover, which plays a
significant role in maintaining the ecological equilibrium of our planet.Land serves as the foundation for all human activities and provides the necessary materials for
these activities. As the most crucial natural resource, its utilization by humans results in different
'Land uses,' which are determined by both human activities and the physical characteristics of the
land.
The utilization of land is impacted by human needs and environmental factors. In countries
like India, rapid population growth and the emphasis on extensive resource exploitation can lead
to significant land degradation, adversely affecting the region's land cover.
Therefore, human intervention has significantly influenced land use patterns over many
centuries, evolving its structure over time and space. In the present era, these changes have
accelerated due to factors such as agriculture and urbanization. Information regarding land use and
cover is essential for various planning and management tasks related to the Earth's surface,
providing crucial environmental data for scientific, resource management, policy purposes, and
diverse human activities.
Accurate understanding of land use and cover is imperative for the development planning
of any area. Consequently, a wide range of professionals, including earth system scientists, land
and water managers, and urban planners, are interested in obtaining data on land use and cover
changes, conversion trends, and other related patterns. The spatial dimensions of land use and
cover support policymakers and scientists in making well-informed decisions, as alterations in
these patterns indicate shifts in economic and social conditions. Monitoring such changes with the
help of Advanced technologies like Remote Sensing and Geographic Information Systems is
crucial for coordinated efforts across different administrative levels. Advanced technologies like
Remote Sensing and Geographic Information Systems
9
Changes in vegetation cover refer to variations in the distribution, composition, and overall
structure of plant communities across different temporal and spatial scales. These changes can
occur natural.
Main Java[All of the Base Concepts}.docxadhitya5119
This is part 1 of my Java Learning Journey. This Contains Custom methods, classes, constructors, packages, multithreading , try- catch block, finally block and more.
Strategies for Effective Upskilling is a presentation by Chinwendu Peace in a Your Skill Boost Masterclass organisation by the Excellence Foundation for South Sudan on 08th and 09th June 2024 from 1 PM to 3 PM on each day.
How to Fix the Import Error in the Odoo 17Celine George
An import error occurs when a program fails to import a module or library, disrupting its execution. In languages like Python, this issue arises when the specified module cannot be found or accessed, hindering the program's functionality. Resolving import errors is crucial for maintaining smooth software operation and uninterrupted development processes.
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Dr. Vinod Kumar Kanvaria
Exploiting Artificial Intelligence for Empowering Researchers and Faculty,
International FDP on Fundamentals of Research in Social Sciences
at Integral University, Lucknow, 06.06.2024
By Dr. Vinod Kumar Kanvaria
Community pharmacy- Social and preventive pharmacy UNIT 5
An overview on python commands for solving the problems
1. “Lecture on Python”
by
Dr. Ravikiran A. Mundewadi
Assistant Professor
Department of Mathematics
M.E.S College of Arts, Commerce and Science,
Malleswaram, Bengaluru-03
4. • Guido Van Rossum is a Dutch programmer best
known as the creator of the python programming
language. When he began implementing python,
Guido Van Rossum was also reading the
published scripts from “Monthly Phythan’s Flying
Circus, a BBC comedy series from the 1970’s.
• Van Rossum thought he needed a name that was
short, unique and slightly mysterious, so he
decided to call the language Phythan.
5. What is Python?
• Python is a high-level, general-purpose programming
language with an elegant syntax that allows programmers to
focus more on problem-solving than on syntax errors. One of
the primary goals of Python Developers is keeping it fun to
use. Python has become a big buzz in the field of
modern software development, infrastructure management,
and especially in Data Science and Artificial Intelligence.
Most recently, Python has risen to the top 3 list of
TIOBE index of language popularity.
• Python is becoming increasingly ubiquitous, but you must
be wondering why Python has become such a hot topic in the
developers’ world. In this tutorial, you will understand all
reasons behind Python’s popularity.
6. • It is often used as a “Scripting language ” for
web applications. This means that it can
automate specific serious of tasks, making it
more efficient. Consequently python is often
used in software applications, pages within
web browser, the shells of operating systems
and same games.
What is python mainly used for?
7. Why is python so popular?
• More productive. First and foremost reason
why python is so much popular is so much
popular because it is highly productive as
compare to other programming language like
C++ and JAVA, etc. Python is also very famous
for its simple programming syntax, code
readability and English like commands that
make coding in python lot easier and efficient.
19. • This is how the syntax would look like in the
“untitled” box:
20. • Press F5 on your keyboard. You will then get the
following message to save your code:
• Click on ‘OK’ to save the file
• Choose a location where the Python file will be
saved on your computer. You’ll also need to type
a name for your file. For example, type “Test” for
your file name:
21. Save the File Name
• It Save as “Test.py”
• “.py” indicates ‘Extension’
• Once you’re done, press Save, and you’ll then see the “Hello
World” expression printed on your Python Shell:
29. What is PIP?
• PIP is a package manager for Python packages.
• Pip is one of the most famous and widely used
package management system to install and
manage software packages written in Python
and found in Python Package Index (PyPI). Pip
is a recursive acronym that can stand for
either "Pip Installs Packages" or "Pip Installs
Python". Alternatively, pip stands for
"preferred installer program".
31. Statements
• Python statements are nothing but logical
instructions that interpreter can read and
execute. It can be both single and multiline.
There are two categories of statements in
Python:
• Expression Statements
• Assignment Statements
44. Tokens
• Tokens are building blocks of a language. They
are the smallest individual unit of a program.
There are five types of tokens in Python.
45. Keywords
• Key words: Key words are pre defined words with special
meaning and these are reserved words must not be used as
normal identifier names. These key words consists of False,
True, None, and, or, not, as, is, in, if, elif, else, for, while,
assert, del, break, class, continue, def, except, global, finally,
from, import, lambda, non local, pass, return, try, with, yield.
46. Identifiers
• Identifiers are the names given to variables,
objects, classes, functions, lists and so on.
• Variables names must not be key words and
must not contain blank spaces.
• Variable names are made up of (A-Z, a-z, 0-9,
underscore_) and must not start with a digit.
Valied variables names are ABCD, abcd, AbCd,
A345, a_bG78, _product.
• Invalid variable names are 6ab, av fd, for, and.
48. String Literals:
A string literal is a sequence of characters surrounded by quotes. We
can use both single, double or triple quotes for a string. And, a
character literal is a single character surrounded by single or double
quotes.
Numeric Literals:
Numeric Literals are immutable (unchangeable). Numeric literals
can belong to 3 different numerical types Integer, Float, and
Complex.
Boolean Literals:
A Boolean literal can have any of the two values: True or False.
Collection literals:
There are four different literal collections List literals, Tuple literals,
Dict literals, and Set literals.
Special literals:
Python contains one special literal i.e. None. We use it to specify to
that field that is not created.
50. Input and Output Statement
• Input statement : input() is used to input string, int(input()) is
used to input integer and float(input()) is used to input floating
value.
• Output statement:
• print statement :
• a=2
• b=3
• The print statement is a function its general form is
• Print(‘this is’,a,’that is’,b)
• Where a and b are pre assigned variable names. If the above
statement is executed the output will be as , this is 2 that is 3,
anything written between two single quotes or between two
double quotes are considered as string.
51. Lists, Tuple and Functions
Lists: Lists are defined as a= [ 1,2,3,4], indexing start
with 0 i.e. a[0]=1,a[1]=2,a[2[=3, a[3]=4. The elements
of the list may be any data type and are mutable.
Tuple : Tuples are the group of any data types separated
by commas and are enclosed in parenthesis.The
elements of tuple are immutable.
Example: a=(1,2,3), b=( ‘a’,2,”C”).
Functions : Functions are defined as
def name(arguments):
return expression
Example:
def f(x,y):
return x+y+2
54. Assignment Operators
Operator Operator Name Description Example
= Assignment It assigns value from
right side operand to
left side operand
I = 40
It assigns 40 to I
+= Add then assign It performs addition
and then result is
assigned to left hand
operand
I+=J
that means I = I + J
-= Subtract then assign It performs
subtraction and then
result is assigned to
left hand operand
I-=J
that means I = I – J
*= Multiply the assign It performs
multiplication and
then result is assigned
to left hand operand.
I*=J
that means I = I * J
/= Divide then assign It performs division
and then result is
assigned to left hand
operand
I/=J
that means I = I / J
%= Modulus then assign It performs modulus
and then result is
assigned to left hand
operand
I%=J
that means I = I % J
**= Exponent then assign It performs exponent
and then result is
assigned to left hand
operand
I**=J
that means I = I ** J
//= Floor division then
assign
It performs floor
division and then
result is assigned to
left hand operand
I//=J
that means I = I // J
55. Comparison operator
Operator Operator Name Description Example
== Equal to If the values of two
operands are equal,
then it returns true.
I = 20, J = 20
(I == J) is True
!= Not Equal to If the values of two
operands are not
equal, then it returns
true.
I = 20, J = 20
(I != J) is False
< Less than If the value of left
operand is less than
the value of right
operand, then it
returns true
I = 40, J = 20
(I < J) is False
> Greater than If the value of left
operand is greater
than the value of right
operand, then it
returns true
I= 40, J = 20
(I > J) is True
<= Less than or equal to If the value of left
operand is less than or
equal to the value of
right operand, then it
returns true
I = 40, J = 20
(I <= J) is False
>= Greater than or equal
to
If the value of left
operand is greater
than or equal to the
value of right
operand, then it
returns true.
I = 40, J = 20
(I >= J) is True
<> Not equal to (similar
to !=)
If values of two
operands are not
equal, then condition
becomes true
I=40, J = 20
(I <> J) is True.
56. • Comparison operator is also known as
Relational Operators because it compares the
values. After comparison, it returns the
Boolean value i.e. either true or false.
57. Bitwise Operators
• It performs bit by bit operation.
Suppose there are two variables,
I = 10 and
J = 20
and their binary values are:
I = 10 = 0000 1010
J = 20 = 0001 0100
now let us see how bitwise operators perform.
58. Operator Operator Name Description Example
& Binary AND If both bits are 1 then
1 otherwise 0
I & J
0000 0000
| Binary OR If one of the bit is 1
then 1 otherwise 0
I | J
0001 1110
^ Binary XOR If both bit are same,
then 0 otherwise 1
I ^ J
0001 1110
~ Binary Complement If bit is 1 the make it
0 and if bit is 0 the
make it 1
~I
1111 0101
<< Binary Left Shift The left operands are
moved left by the
number of bits
specified by the right
operand.
I << 2
240 i.e. 1111 0000
>> Binary Right Shift The left operands are
moved right by the
number of bits
specified by the right
operand.
I >> 2
15 i.e. 1111
59. Membership Operators
Operator Description Example
in It returns true if it finds a
variable in the sequence
otherwise returns false
List = [1,2,3,4,5,6,7,8]
i=1
if i in List:
print(‘i is available in list’)
else:
print(‘i is not available in list’)
Output – i is available in list
not in It returns true if it does not
find a variable in the
sequence otherwise returns
false
List = [1,2,3,4,5,6,7,8]
j=10
if j not in List:
print (‘j is not available in list’)
else:
print (‘j is available in list’)
Output – j is not available in list
60. Identity Operators
• These operators are used to compare the
memory address of two objects.
Operator Description Example
is It returns true if both operand ‘s
identity is same otherwise false
I = 20
J = 20
if(I is J):
print (‘I and J have same identity’)
else:
print (‘I and J have not same identity’)
Output – I and J have same identity
is not It returns true if both operand ‘s
identity is not same otherwise
false
I = 20
J = 230
if(I is not J):
print (‘I and J have not same identity’)
else:
print (‘I and J have same identity’)
Output – I and J have not same identity
61. Logical Operators
Operator Operator Name Description Example
and Logical AND When Both side
condition is true the
result is true
otherwise false
2<1 and 2<3
False
or Logical OR When at least one
condition is true then
result is true
otherwise false
2<1 or 2<3
True
not Logical NOT Reverse the condition Not (5>4)
False
66. for loop
The syntax of for loop is
for i in range(n):
S1
S2
S3
print()
First time i is initialized to zero and all the statements in the body of for loop(i.e.
S1,S2,S3) are executed once, then i increased by 1, again all the statements in the
body are executed, again i increased by 1 and the process continues ,when i reaches n
then the control comes out of for loop and the next statement (in this case it is the
print statement) is executed ( I takes the values from 0 to n-1).
for i in range(1,n):
S1
S2
S3
print()
In this case i start with 1and takes the values up to n-1.
for i in range(1,n,2):
S1
S2
S3
print()
In this case i start with 1 and takes the values less than n with increment 2.
67. while loop
The syntax of while loop is
while condition:
S1
S2
S3
print()
The while loop is executed as long as condition is true
if the condition is false then the control comes out of
the loop and the next statement is executed.