Introduction to Python
- 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.
- 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.
Prerequisites:
Knowledge of any programming language can be a plus.
Python compared to other Programming Language:
Python | Java |
|---|---|
Dynamically Typed
| Statically Typed
|
| Concise Express much in limited words | Verbose Contains 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
Python Program: Java Program:
print("Hello, world!") public class HelloWorld {
public static void main (String[] args) {
System.out.println("Hello, world!");
}
}
Current Applications of Python:
- A number of Linux distributions use installers written in Python example in Ubuntu we have the Ubiquity
- Python has seen extensive use in the information security industry, including in exploit development.
- Raspberry Pi– single board computer uses Python as its principal user-programming language.
- Python is now being used Game Development areas also.
Pros:
- Ease of use
- Multi-paradigm Approach
Cons:
- Slow speed of execution compared to C,C++
- Absence from mobile computing and browsers
- For the C,C++ programmers switching to python can be irritating as the language requires proper indentation of code. Certain variable names commonly used like sum are functions in python. So C, C++ programmers have to look out for these.
Applications :
- GUI based desktop applications
- Graphic design, image processing applications, Games, and Scientific/ computational Applications
- Web frameworks and applications
- Enterprise and Business applications
- Operating Systems
- Education
- Database Access
- Language Development
- Prototyping
- Software Development
Organizations using Python :
- Google(Components of Google spider and Search Engine)
- Yahoo(Maps)
- YouTube
- Mozilla
- Dropbox
- Microsoft
- Cisco
- Spotify
Download and Install Python 3 Latest Version In Windows
How to install Python on Windows?
Since windows don’t come with Python preinstalled, it needs to be installed explicitly. Here we will define step by step tutorial on How to install Python on Windows. Follow the steps below :
Step 1: First and foremost step is to open a browser and type
Step 3: On this page move to Files and click on Windows x86-64 executable installer for 64-bit or Windows x86 executable installer for 32-bit.
Here we are providing the installation process of Python 3.10.4 on Windows
- Run the Python Installer for how to install python on windows downloads folder
- Make sure to mark Add Python 3.10 to PATH otherwise you will have to do it explicitly. It will start installing python on windows.
- This is Python Interpreter also called Python Shell. I printed Hello learners, python is working smoothly.
- The three greater than >>> sign is called Python command prompt, where we write our program and with a single enter key, it will give result so instantly.
Comments
Post a Comment