Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
4 views

Fundamentals of Python Programming

Python is a widely-used programming language known for its versatility and career opportunities, particularly in data science. The average salary for Python developers in India is around 580,000 INR, with potential earnings exceeding 1,000,000 INR based on experience. Python's applications span various fields, including web development, machine learning, and data analysis, making it a popular choice among major companies.
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

Fundamentals of Python Programming

Python is a widely-used programming language known for its versatility and career opportunities, particularly in data science. The average salary for Python developers in India is around 580,000 INR, with potential earnings exceeding 1,000,000 INR based on experience. Python's applications span various fields, including web development, machine learning, and data analysis, making it a popular choice among major companies.
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 39

Fundamentals of

Python
Programming
Python Introduction 2

 Python is a popular programming language. It was created by


Guido van Rossum, and released in 1991.
 Python is not only one of the most popular programming
Languages across the globe, but it is one that offers the most
promising career opportunities as well.
 Python’s automatic memory management and dynamic type
system support different programming standards.
 python has several APIs and libraries to support a lot of other
things than development, including data Manipulation, data
analysis, and data visualization, amongst others.
3
Python Job and Salary Trends in 4
India

 So the average salary of a software developer with Python skills is around 5,80,000 per
annum. This figure can go way beyond Rs 1,000,000 per annum if you have the right
experience and additional skills.
 The popularity of python can be gauged by the fact that it is used by some of the
biggest names in the world – Facebook, Netflix, Google, and Spotify, amongst others.
Python Career Opportunities 5

 Python developer: This is one of the most direct jobs that you
can expect to land after acquiring this skill.
 What does a Python developer do? Here are a few key
responsibilities:
 Build websites
 Resolve problems related to data analytics
 Write codes that are both reusable and efficient
 Optimize data algorithms
 Implement data protection and security
 Data analyst: This is a very interesting opportunity. It is
especially for those who like working with huge amounts of data
and finding meaning in that data.
6

In an independent 3rd party survey, it has been found that the Python programming language
is currently the most popular language for Data Scientists worldwide. This claim is
substantiated by IEEE, which tracks programming languages by popularity. According to them,
Python tops the list of the most popular programming languages in 2018. Not only this, Python
is finding its application in diverse domains, as illustrated below.
The Most In-Demand 7

Programming Languages for 2022


 JavaScript
 Python
 HTML
 CSS
 Java
 SQL
 NoSQL
 C#
Real World Applications of Python 8
 Dynamic Typing, Built-In Data Structures, Powerful Libraries, Frameworks,
Community Support are just some of the reasons which make Python an
attractive language for rapidly developing any sort of application.

 Python Applications
 Web Development
 Game Development
 Machine Learning and Artificial Intelligence
 Data Science and Data Visualization
 Desktop GUI
 Web Scraping Applications
 Business Applications
 Audio and Video Applications
 CAD Applications
 Embedded Applications
Python App Examples 9

 Dropbox
 Netflix
 Instagram and
 Python
 IBM
 Spotify
 Facebook
 Google-…YouTube - is a big user of Python,
Getting Started With Python 10

 Starting your journey in Python requires that you are familiar with
how the technology actually works. And the very first thing that
you would learn is how you can set up the Python environment
on your systems and choose the best IDE that would help you in
the best possible ways.
Python Installation 11

 Following are the steps to install Python


1. Go to www.python.org/downloads/
12

Python Installation For Windows


 Open a browser window and navigate to the
Download page for Windows at python.org.
 Underneath the heading at the top that says Python Releases for
Windows, click on the link for the Latest Python 3 Release –
Python 3.x.x. (As of this writing, the latest version is Python
3.7.2.)
 Scroll to the bottom and select either Windows x86-64 executable
installer for 64-bit or Windows x86 executable installer for 32-bit.
Python IDE 13

 IDE typically provides code editor, compiler/ interpreter and


debugger in one GUI (Graphical User Interface). It encapsulates the
entire process of code creation, compilation and testing which
increases the productivity of developers.
 PyCharm
 Go to www.jetbrains.com/pycharm/download/#section=windows
 (Here, the community version is free,)
 Jupyter Notebook
 Jupyter Notebooks are a powerful way to write and iterate on your Python
code for data analysis. Jupyter Notebook is built off of IPython and the
Kernel runs the computations and communicates with the Jupyter
Notebook front-end interface.
Python Basics 14
Variables In Python 15

 Variables and data types in python as the name suggests are the
values that vary.
Variable Definition & Declaration 16

 Python has no additional commands to declare a variable. As


soon as the value is assigned to it, the variable is declared.

 There are a certain rules that we have to keep in mind while


declaring a variable:
1. The variable name cannot start with a number. It can only start
with a character or an underscore.
2. Variables in python are case sensitive.
3. They can only contain alpha-numeric characters and underscores.
4. No special characters are allowed.
Data Types In Python 17

 There are several data types in


python. Lets take a look at the
data types in python.
 Every value that we declare in
python has a data type. Data
types are classes and variables
are the instances of these
classes.
 According to the properties
they possess, there are mainly
six data types in python.
Although there is one more
data type range which is often
used while working with loops
in python.
Numerical Data Types 18

 Numerical data type holds numerical value. In numerical data there


are 4 sub types as well. Following are the sub-types of numerical data
type:
 Integers
 Float
 Complex Numbers
 Boolean
 Integers are used to represent whole number values.

 To check the type of any variable data type, we can use


the type() function. It will return the type of the mentioned variable
data type.
Cont.. 19

 Float data type is used to represent decimal point values.

 Complex numbers are used to represent imaginary values. Imaginary values are
denoted with ‘j’ at the end of the number.

 Boolean is used for categorical output, since the output of boolean is either true or false.
Strings 20

 Strings in python are used to represent unicode character values.


Python does not have a character data type, a single character is
also considered as a string.
 We denote or declare the string values inside single quotes or
double quotes. To access the values in a string, we use the
indexes and square brackets.

Strings are immutable in nature,


which means you cannot change
a string once replaced.
String Methods 21
22
23
24

Task: How to trim from somewhere in middle of the string


25
Tutorial on If else 26
27
28
29
Tutorial On While Loop 30
31
32
33
Tutorial on For loop 34

 Convert all tutorial programs of while loop into for loop


35
Tutorial on Nested for loop 36
37
38
39

You might also like