Il 0% ha trovato utile questo documento (0 voti)
17 visualizzazioni3 pagine

01 Notes Advanced Python 10-08-2024

ai artat
Copyright
© © All Rights Reserved
Per noi i diritti sui contenuti sono una cosa seria. Se sospetti che questo contenuto sia tuo, rivendicalo qui.
Formati disponibili
Scarica in formato PDF, TXT o leggi online su Scribd
Il 0% ha trovato utile questo documento (0 voti)
17 visualizzazioni3 pagine

01 Notes Advanced Python 10-08-2024

ai artat
Copyright
© © All Rights Reserved
Per noi i diritti sui contenuti sono una cosa seria. Se sospetti che questo contenuto sia tuo, rivendicalo qui.
Formati disponibili
Scarica in formato PDF, TXT o leggi online su Scribd
Sei sulla pagina 1/ 3

ADVANCED PYTHON

What is Programming
1. When you instruct a computer to perform specific tasks then this is
called Computer Programming.
2. These step-by-step instruction written in any programming language
that perform a specific task when executed known as Program.
3. The purpose of programs is to make computer programs run faster,
safer and more efficiently.
4. A Program is written in any programming language which the computer
can understand and execute.
5. Program is collaboration between human and computer.
6. Algorithm and flowchart are powerful tools for learning programming.
Difference Between Coding and Programming
Coding Programming
Coding is a part of programming that Programming is a process that creates
deals with writing codes that a programs that involve the ratification of
machine can understand. codes.
Coding requires basic knowledge of Programming requires a good knowledge of
programming skills without any programming skills and good software
software tools. development tools to manage them in a
better way.
Coding knowledge helps to work with Programming knowledge helps to work
simple projects. with big projects and manage the projects.
Coding requires simple tools and simple Programming requires a large number of
syntax. tools and syntax.
It follows the trial-and-error method Programming needs a piece of detailed
and needs no previous preparations. information and a detailed
approach.

Need of Programming Language


1940s Machine Level 1950s Assembly Level 1960s
LanguageMLL (Binary) Language ALL High Level Language HLL
(Mnemonics) Symbols
01001011 ADD +
10101101 SUB -
11011101 MUL *
00100011 DIV /

Types of Programming Language


1. Machine level/ Low level / Binary Language/First Generation
Language
2. Assembly Language / Second Generation
3. High Level Language / Third Generation Language

1.Machine Level Language


Machine Language is a type of programming languages which runs and
understood by computer and its parts directly. This is often referred to as
binary language which is mostly composed of 0s and 1s.
2.Assembly Language
An assembly language is a low-level programming language uses
mnemonic instructions to represent machine code instructionsto
communicate directly with a computer's hardware.
3.High Level Language
High level language uses words and commands along with symbols and
numbers. The keywords used in High level languages are similar to English
words and can be easily understood by Humans when compared to a Low
level language.
Ex: C,C++ C#, Java, PHP, PASCAL, Fortan, Python Etc.
Language Translator
Language translators allow computer programmers to write sets of
instructions in specific programming languages. These instructions are
converted by the language translator into machine code. The computer
system then reads these machine code instructions and executes them.
Language translators are also called language processors.
Code written in any high-level programming language is called “source
code”. When you change the source code into machine code, it is called
“object code”. A translator turns the source code into object code, which
the computer can understand and run.
Types of Language Translator
i. Compiler
ii. Assembler
iii. Interpreter
Compiler
The language processor that reads the complete source program written in
high-level language as a whole in one go and translates it into an equivalent
program in machine language is called a Compiler. Ex: C,C++,C#
Assembler
The Assembler is used to translate the program written in Assembly
language into machine code.
Interpreter
The translation of a single statement of the source program into machine
code is done by a language processor and executes immediately before
moving on to the next line is called an interpreter.
Ex: Python, Visual Basic, Javascript

Potrebbero piacerti anche