python notes introduction
python notes introduction
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 very 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
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!")
Advantages :
1. Presence of third-party modules
2. Extensive support libraries(NumPy for numerical calculations, Pandas for
data analytics etc)
3. Open source and community development
4. Versatile, Easy to read, learn and write
5. User-friendly data structures
6. High-level language
7. Dynamically typed language(No need to mention data type based on the
value assigned, it takes data type)
8. Object-oriented language
9. Portable and Interactive
10. Ideal for prototypes – provide more functionality with less coding
11. Highly Efficient(Python’s clean object-oriented design provides enhanced
process control, and the language is equipped with excellent text
processing and integration capabilities, as well as its own unit testing
framework, which makes it more efficient.)
12. (IoT)Internet of Things Opportunities
13. Interpreted Language
14. Portable across Operating systems
Applications :
1. GUI based desktop applications
2. Graphic design, image processing applications, Games, and Scientific/
computational Applications
3. Web frameworks and applications
4. Enterprise and Business applications
5. Operating Systems
6. Education
7. Database Access
8. Language Development
9. Prototyping
10. Software Development