Skip to main content

Programming In Python | What is Python language ?

 We need to give instruction to the computer, to begin the process of solving problems or to accomplish certain tasks. A set of predefined instructions in logical manner makes up a program.

Programming

One of the most important aspect of computer field is to make 'Programs'. A program is written in a computer language, like BASIC, 'C', 'C++', Python, etc. A computer language consists of codes which are combined in accordance with a predefined syntax. that conveys the instruction to the components (ALU) of CPU.

In this section, I am discuss about how to solve problems by developing simple programs with the help of the computer language; 'Python'

What is Python ? 
Python is saved by .py extension

Python is an interpreted, high-level, general-purpose programming language. This language Created by Guido van Rossum and first released in 1991. Python is a very simple and powerful language. It helps to create programs in computer.

Python

Python has involved into a useful language as it is simple and is being used in many fields such as in Robotics, Scientific Purposes (Used by NASA), Search Engines (Google), YouTube, Hardware Testing (Being used by Intel, Cisco, HP, etc.), GUI Interface (Popularly used in GIMP), 3D Animation (Maya) etc.

Features of Python Programming Language:

  • The keywords of python are in simple English.
  • Python library is portable and compatible with all types of Operating System hence it is known as platform independent programming language.
  • Python is an interpreted language i.e. Python interprets and executes the code, line by line. This also makes Python easy to debug.
  • It can be easily intergrated with C,C++, Java, etc.

Character Set of Python

Character set in Python consists of valid characters such as alphabets, digits or special characters that are recognized by the library of Python Language.

Alphabets                 A,B......,Y,Z or a,b......,y,z
Digits                        0,1,2,3,4,5,6,7,8,9
Special characters    ~!@#$%^&*()_-+=|\{}[]:;"'<>,.?/,<<,>>
White space              Blank space, Horizontal tab, New line, etc.

Keywords in Python

There are 33 keywords in Python which are:
  • false
  • return
  • else
  • lambda
  • yield
  • from
  • def
  • none
  • import
  • is 
  • with
  • break
  • or
  • if
  • true
  • elif
  • while
  • assert
  • for
  • continue
  • raise
  • and
  • in
  • as
  • finally
  • not
  • global
  • del
  • try
  • except
  • nonlocal
  • class
  • pass

Identifiers in Python

Identifiers are the fundamental building blocks of a program that are used to identify names of different elements of the programs such as variable. These elements have specific properties that helps in making programs.

Guidelines for creating Identifiers in Python:
  • An identifier is an arbitrary sequence of letters in lower case (a to z) & upper case (A to Z), digits (0 to 9) and underscore (_).
  • The first character of the identifier must be a letter (a to z or A to Z) or underscore (_). It must not begin with digits (0-9).
  • An identifier must not be a 'keyword'.
  • An identifier must not contain any special character except underscore (_).
 Example of Valid Identifier:
  • _hello
  • _Hello
  • _HeLlo
  • hello_123 
  • _12
Example of Invalid Identifier along with the Reason:
1Hello : The name of the identifier should never start with a 'Number'.
@Hello : The name of the identifier should not contain any special character expect _ .
return : The name of the identifier should not be same as any of the keywords.

What is the main use of Python ?

Python is a general purpose and high level programming language. You can use Python for developing desktop GUI applications, websites and web applications. Also, Python, as a high level programming language, allows you to focus on core functionality of the application by taking care of common programming tasks.

Some of the benefits of programming in Python include:
  • Presence of Third Party Modules.
  • Extensive Support Libraries.
  • Open Source and Community Development.
  • Learning Ease and Support Available.
  • User-friendly Data Structures.
  • Productivity and Speed.

If you want more information about Python programming language, you can go to www.python.org and read the article.

If you want to more information about anything on tech so, please    Our website. Thank You!

Comments

  1. Thanks for this python article.

    ReplyDelete
    Replies
    1. Hello there, thanks for reply. I make some interesting article like this. If you want more article like coding or programming so please subscribe our website. Thanks!

      Delete

Post a Comment

Popular posts from this blog

Let us understand DevOps

What Will You Learn ? DevOps is a set of practices that combines software development (Dev) and IT operations (Ops) This article will get you started with the fundamentals of DevOps and understanding how to use it in real projects Understanding what DevOps is and why it's needed along with the basic terminologies Getting started with DevOps and understanding its architecture and lifecycle Introduction to Git and it's basic commands Introduction to Docker, Docker container and it's related concepts Getting started with Jenkins and understanding how to integrate it with Github Basics of Selenium and Nagios Who is the target audience ? Students and industry professionals who wish to get hands-on something called DevOps Users who wish to learn how to integrate the processes between software development IT teams and manage various projects Benefits Improved operational support and faster fixes Good processes across IT and teams, including automation Increased team flexibility an

What is Hard Disk? Definition, functions and types.

In this article, you will know what is Hard Disk and what are these types? Hard disks are also often called Disk drive or "Hard Disk Drive (HDD)". Just as a library is required to handle books in the library, the same computer also needs a similar place in which it can store digital data .  Computers use two types of storage devices to store and process digital content (Document, Image, Videos, Software, Operating system, Program). In which Hard Disk is a secondary memory device. It keeps the data stored permanently. Whereas the primary memory device (RAM) serves to process the program of the computer . It is also called temporary memory. Hard Disk is seen as an important component of a computer because no computer will work without it. In this post we will tell you what is a hard disk in a computer ? In which you will get to know a lot about Hard Disk. So let's first know, what is called a hard disk and then we will talk about other aspects of it. What is hard disk

Unraveling the Mysteries of Quantum Computers: A Glimpse into the Future of Computing

In the realm of computer science, the concept of quantum computing stands as a beacon of unprecedented potential. Unlike classical computers that rely on bits to process information in binary form (0s and 1s), quantum computers harness the mind-bending principles of  quantum mechanics to manipulate quantum bits or qubits. This revolutionary approach holds the promise of solving complex problems at speeds that traditional computers could only dream of. Let's delve deeper into the enigmatic world of quantum computing. Understanding Quantum Computer: At the heart of quantum computing lies the qubit, the fundamental unit of quantum information. Qubits possess the unique ability to exist in multiple states simultaneously, thanks to a phenomenon called superposition. This allows quantum computers to perform parallel computations on a scale unimaginable with classical computers. Furthermore, quantum computers leverage another principle of quantum mechanics known as entanglement. Entangle