What is Programming language?

A programming language is a formal set of rules and syntax used to communicate instructions to a computer. It enables developers to write programs that tell the computer how to perform specific tasks, such as calculations, data processing, or interacting with users.

What is Python

Python is a high-level, general-purpose programming language. Its design philosophy emphasizes code readability with the use of significant indentation. Python is dynamically typed and garbage-collected. It supports multiple programming paradigms, including structured, object-oriented and functional programming.

History of python

  • Python Programming language foundation stone laid in the year 1980.
  • Python Programming language implementation started in the year 1989.
  • Python Programming language officially released in the year 1991 Feb.
  • Python Programming language developed by GUIDO VAN ROSSUM.
  • Python Programming language developed at CWI Institute in Nether-lands.
  • ABC programming language is the Predecessor of Python Programming language.
Code Snippet
def login_page(request):
    if request.method == 'POST':
        username = request.POST.get('username')
        password = request.POST.get('password')

        user = authenticate(username=username, password=password)

        if user is not None:
            login(request, user)
            return redirect('dashboard.html')
    return render(request, 'login.html')

Features of python

Features of language are nothing Services (or) Facilities provided by Language developers which are used by language Programmers for developing real time applications. ➢ Python Programming provides 11 features . They are :-

  1. Simple
  2. Freeware and Open Source
  3. Platform Independent
  4. Dynamically Typed Programming
  5. Interpreted Programming
  6. High Level Programming
  7. Robust (Strong )
  8. Both Procedural and Object Oriented Programming
  9. Extensible
  10. Embedded
  11. Supports Third party APIs---Numpy, Pandas, SciPy, Scikit, matplotlib

1. Simple

Python is one of the Simple Programming Language because 3 technical factors. They are :-

  • Python Provides Rich Set of APIs (Libraries). So that Python Programmers can Re-Use the pre-defined Code without writing our own code.
  • Def Of API (Application Programming Interface): ➢ An API is a collection of MODULES. ➢ A MODULE is a Collection of FUNCTIONS, VARIABLES and CLASSES Examples:- math , c-math, calendar, random , datetime....etc.
  • Python Programming Provide In-Built Garbage Collection Facility. So that Garbage Collector Collects Un-Used Memory Space and Improves the Performance of Python Based Applications.
  • ➢ Definition of Garbage Collector: -------------------------------------------- ➢ A Garbage Collector is one of the in-Built Python Background which is running behind of Regular Python Program and whose role is to collect un-used memory and improves the Performance of Python Based Applications. ➢ hence, Garbage Collector takes about automatic Memory management.
  • Python Provides User-Friendly Syntaxes. So That Python Programmer can develop Error-Free Programs in limited span of time.