Home | | Problem Solving and Python Programming | Python programming language

Chapter: Problem Solving and Python Programming : Data, Expressions, Statements

Python programming language

Python is an example of a high-level language; other high-level languages you might have heard of are C, C++, Perl, and Java.

Python programming language

Python is an example of a high-level language; other high-level languages you might have heard of are C, C++, Perl, and Java. There are also low-level languages, sometimes referred to as “machine languages” or “assembly languages.

The high-level program is called the source code, and the translatedprogram is called the object code or the executable. Once a program is compiled, you can execute it repeatedly without further translation.

Programs written in a high-level language have to be processed before they can run.

Python is considered an interpreted language because Python programs are executed by an interpreter. There are two ways to use the interpreter: interactive mode and script mode.

In interactive mode, type Python programs and the interpreter displays the result.

Eg: >>> 1 + 1

2

Where, >>> is the prompt the interpreter uses to indicate that it is ready

In script mode, type python program in a file and store the file with .py extension and use the interpreter to execute the contents of the file, which is called a script.

bug: An error in a program.

debugging: The process of finding and removing any of the three kinds of programming errors.

syntax: The structure of a program.

syntax error: An error in a program that makes it impossible to parse (and therefore impossible to interpret).

exception: An error that is detected while the program is running.

semantics: The meaning of a program.

semantic error: An error in a program that makes it do something other than what the programmer intended.

 

Study Material, Lecturing Notes, Assignment, Reference, Wiki description explanation, brief detail
Problem Solving and Python Programming : Data, Expressions, Statements : Python programming language |

Related Topics

Problem Solving and Python Programming : Data, Expressions, Statements


Privacy Policy, Terms and Conditions, DMCA Policy and Compliant

Copyright © 2018-2023 BrainKart.com; All Rights Reserved. Developed by Therithal info, Chennai.