PYTHON : AS A HIGH LEVEL PROGRAMMING LANGUAGE

Tech Guru
0



TECH GURU - "I think python was snake until i don't know about coding"

BASIC INTRODUCTION TO PYTHON : 

In this blog we are going to discuss about the basic introduction to Python. As we all know that Python is a high-level, interpreted, interactive and object oriented programming language that was being  created in the late 1980s by Guido van Rossum. It is a general-purpose language that is widely used in a variety of applications, including web development, scientific computing, data analysis, artificial intelligence, and more. Python is known for its simplicity and readability, making it a great language for beginners to learn and for experts to use.

 


HISTORY OF PYTHON :

Python was developed by Guido-van-Rossum in the late 1980’s and 1990’s at the National Research Institute for Mathematics and Computer Science in the Netherlands.

Python is derived from many other languages including ABC, Module-3, C , C++, Algol-68, Smalltalk, Unix Shell and other scripting languages.

Now we will going to discuss about some of the basic features of the python which makes it more attractive as compared to other programming languages.

FEATURE OF PYTHON :

PYTHON IS HIGH LEVEL PROGRAMMING LANGUAGE :

                Python is designed to be highly readable. It uses English keywords frequently where as other languages use punctuation and it has fewer syntactical constructions than other languages.

PYTHON IS INTERPRETED :

                Python is processed at runtime by the interpreter. You don’t need to compile your program before executing it.

PYTHON IS INTERACTIVE :

                You can actually sit at a Python prompt and interact with the interpreter directly to write your programs

PYTHON IS OBJECT-ORIENTED :

                Python supports object-oriented style or technique of programming that encapsulates code within objects.

After knowing the various features of python, now we will discuss that what is the need of python as a high  level programming language

NEED FOR PYTHON PROGRAMMING:

1.     SOFTWARE QUALITY :

Python focus on the readability, coherence and software quality in general sets it apart from other tools in the scripting world.

Python has deep support for more advanced software reuse mechanisms such as object- oriented programming (oops).

2.      DEVELOPER PRODUCTIVITY : 

Python code is typically one-third to one-fifth the size of equivalent C++ or JAVA Code that means there is less to type, less to debug and less to maintain.

Python program also run immediately, without the lengthy compile and link steps required by some other tools, further boosting programmer speed.

3.      SUPPORT LIBRARIES : 

Python comes with a large collection of prebuilt and portable functionality, known as the standard library this library supports an array of application level programming tasks, from text pattern matching to network scripting.

Python can be executed with both homegrown libraries and a vast collection of third-party application support software.

Python can be extended with both homegrown libraries and a vast collection of third-party application support software. Python’s third-party domain offers tools for website construction, numeric programming, serial port access, game development and much more.

4.     EASY TO UNDERSTAND :

Being a very high-level language, Python reads like English , which takes a lot of Syntax- learning stress off coding beginners.

Python handles a lot of complexity for you, so it is very beginners-friendly in that it allows beginners to focus on learning programming concepts and not have to worry about too much details.

5.      FLEXIBILITY :

As a dynamically typed language, python is very flexible. This means there are no hard rules on how to built features and you’ll have more flexibility solving problems using different methods.

Python is also more forgiving of errors, so you’ll still be able to compile and run your program until you hit the problematic part. 

Now we will discuss about various application of python in the world of technology to make optimum utilization of resources present to us to suceed better in future.

APPLICATION OF PYTHON:

The following are the application of python

1. Web Application

2. Desktop Application

3. Database Application

4. Web Scrapping

5. Web Mapping

6. Data Analysis

7. Interactive web visualization

8. Object Oriented Programming


GET START WITH PYTHON

To get started with Python, you need to have it installed on your computer. You can download the latest version of Python from the official Python website. Click her to reach to the official site of python to download it. Here is also a vedio to Download python3.8.10 in your pc to perform various operations on it.



Once you have Python installed, you can start writing and executing code.

One of the best ways to learn Python is by using an interactive shell, which is a command-line interface that allows you to write and execute code one line at a time. To start the interactive shell, open a terminal window or command prompt and enter the following command:


With the interactive shell open, you can start writing and executing Python code. For example, to print the phrase "Hello, World!", you can use the following code:

print("Hello, World!")
You can also write and save Python code in a text file with a .py extension. To run the code in the file, you can use the following command in the terminal:

python filename.py
Basic Data Types in Python

Python has a number of basic data types that you can use to store and manipulate data. These data types include integers, floating-point numbers, strings, and Booleans.

For example, to store an integer in Python, you can use the following code:

x = 10
To store a floating-point number, you can use the following code:

y = 3.14
To store a string, you can use either single or double quotes:

name = "John Doe"
To store a Boolean value, you can use the keywords True and False:

is_valid = True
Control Structures in Python

Python has a number of control structures that you can use to control the flow of your program. These control structures include if statements, for loops, and while loops.

For example, to use an if statement to check if a number is positive, you can use the following code:

x = 10
if x > 0:
    print("x is positive")
To use a for loop to iterate over a list of numbers, you can use the following code:

numbers = [1, 2, 3, 4, 5]
for number in numbers:
    print(number)
To use a while loop to sum the numbers from 1 to 100, you can use the following code:

sum = 0
i = 1
while i <= 100:
    sum += i
    i += 1
print("The sum is", sum)


CONCLUSION

Python is a versatile and powerful programming language that is widely used in a variety of applications. With its simplicity and readability, it is a great language for beginners to learn and for experts to use. Whether you're interested in web development, scientific computing, data analysis, or artificial intelligence, Python is a great language to add to your skillset.

Post a Comment

0Comments
Post a Comment (0)