The Python Programming Language

Lakukan tugas rumah & ujian kamu dengan baik sekarang menggunakan Quizwiz!

Machine Code

Code using instructions in a CPU's instruction set and in binary form (i.e., 1s and 0s). can only be executed by a CPU

STEPS FOR COMPLIER

PROGRAM IN A HIGH LEVEL LANGUAGE-COMPILER-MACHINE CODE VERISON OF PROGRAM-HARDWARE(CPU)-RESULTS

STEPS FOR INTERPRETER

PROGRAM-SOFTWARE AND HARDWARE-RESULTS

Guido van Rossum

The Python Programming Language first released in the early 1990s was created by

an editor

for creating and modifying programs

a translator

for executing programs

a program debugger

for taking control of the execution of a program

PyCharm

is a IDE for Python. •does not have an interpreter. It allows user to choose one from all Python interpreters that are installed in a computer.

Integrated development environment (IDE)

is a bundled set of software tools for program development. WHICH INCLUDES AN EDITOR, TRANSLATOR, AND A PROGRAM DEBUGGER

Compiler

software that translates the whole program into machine code. Compilation is done before a program is executed by the CPU

Features of Pythons

•Emphasizes code readability • Its syntax allows programmers to express concepts in fewer lines of code than possible in languages such as C++ or Java •Is a high level programming language

The CPU can only understand a small set of instructions lik

•data movement (e.g. moving a number from a register to ALU) •simple arithmetic (e.g. addition, subtraction) •logical operation (e.g. checking whether two numbers are the same)

Interpreter

•software that translates an instruction right before that instruction is executed. Interpretation and program execution progress in parallel

WHAT MODEL DOES PYTHON USE

•the interpretation model

High level language instructions

•use a combination of math expressions and simple commands. It allows the programmer to concentrate on the logic of the program rather than the machine level operations of the CPU


Set pelajaran terkait

B1 - frases para completar con pronombres de OI y OD

View Set

Ch. 1 - Physical Fitness and Wellness

View Set

PrepU Chapter 10 The Psychiatric Mental Health Nursing Process

View Set

Chapter 8: Race and Ethnicity as Lived Experience

View Set