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

Introduction To Python - Notes

The document provides an introduction to the Python programming language, describing what Python is, why it should be learned, its features, common uses in industries, career opportunities, and the differences between Python 2 and Python 3. Python is described as a simple, general purpose, high-level programming language used widely in areas like web development, software development, mathematics, and more.

Uploaded by

Anuj Chauhan
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
36 views

Introduction To Python - Notes

The document provides an introduction to the Python programming language, describing what Python is, why it should be learned, its features, common uses in industries, career opportunities, and the differences between Python 2 and Python 3. Python is described as a simple, general purpose, high-level programming language used widely in areas like web development, software development, mathematics, and more.

Uploaded by

Anuj Chauhan
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

Introduction To Python

What Is Python?

Python is a simple, general purpose, high level, and object-oriented programming language.
Guido Van Rossum is known as the founder of Python programming and it was released in
1991. It is a free, open-source, interpreted scripting programming language.

It is used for:
web development (server-side),
software development,
Mathematics,
system scripting.

Why Learn Python?

● Python is also a cross-platform compatible language.i.e, you can install and run Python
on several operating systems. Whether you have a Windows, Mac, or Linux, you can
rest assured that Python will work on all these operating systems.

● Python is also great for visualization. It provides libraries such as Matplotlib, Seaborn,
and many more for visualization purposes.

● Python is the most popular language for Machine learning and Deep Learning. Today, all
top organizations are investing in Python to implement Machine Learning in the
back-end.

● Learning a python programming language is easy. If you compare Python with any other
language, for example, Java or C++. The syntax of Python is a lot easier .

1
● Suppose we want to print “Welcome to the world of programming” on our screen. Let’s
compare the syntax for Python and Java:

Python Syntax:

print(“Welcome to the world of programming”)

Java Syntax:

class Simple{

public static void main(String args[]){

System.out.println("Welcome to the world of programming");

So here we see that Python code consists of only one line, but for Java, there are multiple lines
of code just for printing a statement.

Features Of Python

2
● Easy and simple to learn and understand.
● Python enables object-oriented programming and concepts such as classes,
encapsulation, and so on.
● Python is a dynamically typed language
● It turns the code into bytecode, which can be run on any platform.
● It is an extensible programming language which means we can write and compile code
like any other programming language.
● Python is also an integrated language since it can easily be used with other
programming languages such as C, C++, Java, and others.
● Large Open Source Community: Suppose you are working on a python project and you
get stuck somewhere, you don’t have to worry because python has a huge community
for help. So, if you have any queries, you can directly seek help from millions of python
community members.

Python In Industries

Python is a general-purpose, popular programming language and it is used in almost every


technical field.

● Meta uses Python to tag friends in images


● Google uses Python in Language Translation and to improvise search results
● E-commerce giants like Amazon, Flipkart uses Recommendation system
● Dropbox server and client application uses Python
● 3D CAD Applications
● Computer Vision or Image Processing Applications.
● Speech Recognitions

Projections Of Future Traffic For Major Programming Languages

3
The above graph shows following results:

● Analytics programming languages(Python & R) will continue gaining popularity


● Java will gain a little and then keep a constant popularity
● JavaScript, C# & C++ will loose significant popularity
● PHP & Ruby could lose almost all their popularity and become obsolete in the next 5
years

Python Career Opportunities – Which one will you choose?

While there’s a high demand for Python developers in India, the supply is really, really low.

4
With Python on your resume, you may end up with one of the following positions in a reputed
company:

● Software Engineer - Analyze user requirements


○ Write and test code
○ Write operational documentation
○ Consult clients and work closely with other staff
○ Develop existing programs

● Senior Software Engineer - Develop high-quality software architecture


○ Automate tasks via scripting and other tools
○ Review and debug code
○ Perform validation and verification testing
○ Implement version control and design patterns

● DevOps Engineer - Deploy updates and fixes


○ Analyze and resolve technical issues
○ Design procedures for maintenance and troubleshooting
○ Develop scripts to automate visualization
○ Deliver Level 2 technical support

● Data Scientist - Identify data sources and automate the collection


○ Preprocess data & analyze it to discover trends
○ Design predictive models and ML algorithms
○ Perform data visualization
○ Propose solutions to business challenges

● Senior Data Scientist - Supervise junior data analysts


○ Build analytical tools to generate insight, discover patterns, and predict behavior
○ Implement ML and statistics-based algorithms
○ Propose ideas for leveraging possessed data
○ Communicate findings to business partners

● And Many More Such as: Web application development


○ Machine Learning
○ Deep Learning
○ Big data analysis
○ Smart IOT Devices

5
Python 2 Vs. Python 3

The two versions of Python - Python 2 and Python 3 are the most widely used Python versions

and there are many differences between these versions which are as follows:

Python 2 Python 3

The release year of Python 2 is 2000 The release year of Python 3 is 2008

The syntax is more complex in this version The syntax is easy and simple
than in Python 3

By default, strings are saved in ASCII format By default, strings are saved in UNICODE
in version 2 of Python format in this version.

In Python 2, Print is a statement. So, the In Python 3, Print is a function. So, the syntax
syntax is print “hello” is print (“hello”).

Exceptions should be enclosed in notations in Exceptions should be enclosed in


Python 2. parentheses in Python 3.

In python 2, while using variables inside a In Python 3, the value of variables stays
for-loop, their values do change. constant.

Python 2 is not that popular after 2020 Python 3 is a more popular version of Python
compared to Python 3 and is being used for many purposes

To perform iterations in Python 2, xrange() is To perform iterations in Python 3, Range() is


used used

You might also like