0% found this document useful (0 votes)
2 views

Python

Python is a high-level, general-purpose programming language widely used in web development and machine learning, suitable for both beginners and experienced programmers. It emphasizes code readability and allows programming in multiple paradigms, with a vast standard library supporting various applications. Python's popularity is attributed to its simplicity, platform independence, and robust features, making it a preferred choice among tech giants.

Uploaded by

Umair Kidwai
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

Python

Python is a high-level, general-purpose programming language widely used in web development and machine learning, suitable for both beginners and experienced programmers. It emphasizes code readability and allows programming in multiple paradigms, with a vast standard library supporting various applications. Python's popularity is attributed to its simplicity, platform independence, and robust features, making it a preferred choice among tech giants.

Uploaded by

Umair Kidwai
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

Python Programming Language

Python is a high-level, general-purpose and a very popular


programming language. Python programming language (latest Python
3) is being used in web development, Machine Learning applications,
along with all cutting edge technology in Software Industry. Python
Programming Language is very well suited for Beginners, also for
experienced programmers with other programming languages like C++
and Java.
This specially designed Python tutorial will help you learn Python
Programming Language in most efficient way, with the topics from
basics to advanced (like Web-scraping, Django, Deep-Learning, etc.)
with examples.
Below are some facts about Python Programming Language:
1. Python is currently the most widely used multi-purpose, high-
level programming language.
2. Python allows programming in Object-Oriented and Procedural
paradigms.
3. Python programs generally are smaller than other programming
languages like Java. Programmers have to type relatively less
and indentation requirement of the language, makes them
readable all the time.
4. Python language is being used by almost all tech-giant
companies like – Google, Amazon, Facebook, Instagram,
Dropbox, Uber… etc.
5. The biggest strength of Python is huge collection of standard
library which can be used for the following:
 Machine Learning
 GUI Applications (like Kivy, Tkinter, PyQt etc. )
 Web frameworks like Django (used by YouTube,
Instagram, Dropbox)
 Image processing (like OpenCV, Pillow)
 Web scraping (like Scrapy, BeautifulSoup, Selenium)
 Test frameworks
 Multimedia
 Scientific computing
 Text processing and many more.

Python designed by Guido van Rossum at CWI has become a


widely used general-purpose, high-level programming
language.

Prerequisites:

Knowledge of any programming language can be a plus.

Reason for increasing popularity

1) Emphasis on code readability, shorter codes, ease of


writing
2) Programmers can express logical concepts in fewer lines
of code in comparison to languages such as C++ or Java.
3)Python supports multiple programming paradigms, like
object-oriented, imperative and functional programming or
procedural.
LANGUAGE FEATURES

Interpreted
There are no separate compilation and execution steps like C
and C++.
Directly run the program from the source code.
Internally, Python converts the source code into an
intermediate form called bytecodes which is then translated
into native language of specific computer to run it.
No need to worry about linking and loading with libraries,
etc.
Platform Independent
Python programs can be developed and executed on multiple
operating system platforms.
Python can be used on Linux, Windows, Macintosh, Solaris
and many more.
Free and Open Source; Redistributable
High-level Language
In Python, no need to take care about low-level details such
as managing the memory used by the program.
Simple
Closer to English language;Easy to Learn
More emphasis on the solution to the problem rather than the
syntax
Embeddable
Python can be used within C/C++ program to give scripting
capabilities for the program’s users.
Robust:
Exceptional handling features
Memory management techniques in built
Rich Library Support
The Python Standard Library is vary vast.
Known as the “batteries included” philosophy of Python ;It
can help do various things involving regular expressions,
documentation generation, unit testing, threading, databases,
web browsers, CGI, email, XML, HTML, WAV files,
cryptography, GUI and many more.
Besides the standard library, there are various other high-
quality libraries such as the Python Imaging Library which is
an amazingly simple image manipulation library.

Python vs JAVA

Python Java

Statically Typed 1.All variable


Dynamically Typed1.No need names (along with their types) must
to declare anything. An assignment be explicitly declared. Attempting to
statement binds a name to an object, assign an object of the wrong type to
and the object can be of any a variable name triggers a type
type.2.No type casting required when exception.2.Type casting is required
using container objects when using container objects.

Concise Express much in limited


words VerboseContains more words

Compact Less Compact

Uses Indentation for structuring


code Uses braces for structuring code
The classical Hello World program illustrating the relative verbosity of a
Java Program and Python Program
Java Code
public class HelloWorld
{
public static void main (String[] args)
{
System.out.println("Hello, world!");
}
}

Python Code
print("Hello, world!")

Similarity with Java


 Require some form of runtime on your system (JVM/Python
runtime)
 Can probably be compiled to executables without the runtime (this
is situational, none of them are designed to work this way)

You might also like