0% found this document useful (0 votes)
14 views16 pages

#01 Introduction To Programming

Uploaded by

umeeduna
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views16 pages

#01 Introduction To Programming

Uploaded by

umeeduna
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 16

INTRODUCTION TO

PROGRAMMING
By Zeeshan Hussain (Software Engineer)

Portfolio: Universedeveloper.netlify.app | WhatsApp: +923181482800 | Lecturer: Zeeshan Hussain


WHAT IS PROGRAMMING ?
• Programming is giving a set of instructions to a computer to execute.
• Most used programming languages:
• Python
• JavaScript
• PHP
• SQL etc.

Portfolio: Universedeveloper.netlify.app | WhatsApp: +923181482800 | Lecturer: Zeeshan Hussain


LEVELS OF PROGRAMMING LANGUAGE
• Programming languages can be categorized into levels based on their
level of abstraction and proximity to machine code:
• Low level language
• Assembly level language
• High level language

Portfolio: Universedeveloper.netlify.app | WhatsApp: +923181482800 | Lecturer: Zeeshan Hussain


LOW LEVEL LANGUAGE
• Low level languages are closest to the hardware and provide a direct
representation of machine code instructions. They are often specific
to a particular computer architecture and are difficult to read and
write.

Portfolio: Universedeveloper.netlify.app | WhatsApp: +923181482800 | Lecturer: Zeeshan Hussain


ASSEMBLY LEVEL LANGUAGE
• Assembly language is a low-level programming language that uses
mnemonics (‫ ) یادداشت‬to represent machine instructions.
• It is more readable and easier to understand than Low level language.

Portfolio: Universedeveloper.netlify.app | WhatsApp: +923181482800 | Lecturer: Zeeshan Hussain


HIGH LEVEL LANGUAGE
• High-level languages are programming languages that are designed to
allow humans to write computer programs and interact with a
computer system without having to have specific knowledge of the
processor or hardware that the program will run on.
• Examples:
• C/C++, JavaScript, Python, Java etc.

Portfolio: Universedeveloper.netlify.app | WhatsApp: +923181482800 | Lecturer: Zeeshan Hussain


TRANSLATOR
• A translator is a computer program that translates a program written
in a given programming language
• 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 translators:
• Assembler
• Interpreter
• Compiler

Portfolio: Universedeveloper.netlify.app | WhatsApp: +923181482800 | Lecturer: Zeeshan Hussain


ASSEMBLER
• Assemblers translate a program written in assembly language into
machine language.
• Assembly language is a low-level programming language.

Portfolio: Universedeveloper.netlify.app | WhatsApp: +923181482800 | Lecturer: Zeeshan Hussain


INTERPRETER
• The interpreter checks the source code line-by-line and if an error is
found on any line, it stops the execution until the error is resolved,
and then translate the line into a machine language.
• Some examples of programming languages that use interpreters are
Python, Ruby, Perl, PHP, and MATLAB.

Portfolio: Universedeveloper.netlify.app | WhatsApp: +923181482800 | Lecturer: Zeeshan Hussain


COMPILER
• A compiler is a program that translates source code written in a high-
level programming language into machine code that can be executed
by a computer's processor.
• Unlike interpreters, which execute code line by line, compilers
translate the entire source code into an executable form before it is
run.
• Some examples of programming languages that use compiler are
C/C++, Java and Go.

Portfolio: Universedeveloper.netlify.app | WhatsApp: +923181482800 | Lecturer: Zeeshan Hussain


ALGORITHM
• An algorithm is a set of steps for accomplishing a task or solving a
problem.
• Typically, algorithms are executed by computers, but we also rely on
algorithms in our daily lives. Each time we follow a particular step-by-
step process, like making coffee in the morning.

Portfolio: Universedeveloper.netlify.app | WhatsApp: +923181482800 | Lecturer: Zeeshan Hussain


ALGORITHM: CALCULATE THE SQUARE OF A
NUMBER
1.Start.
2.Input the number (N) whose square you want to find.
3.Multiply the number (N) by itself.
4.Store the result of the multiplication in a variable (result).
5.Output the value of the variable (result), which represents the square
of the input number.
6.End.

Portfolio: Universedeveloper.netlify.app | WhatsApp: +923181482800 | Lecturer: Zeeshan Hussain


INTRODUCTION TO PYTHON
PROGRAMMING
• Python is a high-level, interpreted programming language known for
its simplicity and readability.
• It was created by Guido van Rossum and first released in 1991 in the
Netherlands.
• Python is widely used across various domains, including:
• Web development, Data analysis, Artificial intelligence, Scientific
computing, Automation, and more.

Guido Van Rossum Python

Portfolio: Universedeveloper.netlify.app | WhatsApp: +923181482800 | Lecturer: Zeeshan Hussain


ADVANTAGES OF USING PYTHON
• Here are some key benefits of using Python:
• Easy to Read, Learn and Write
• Free and Open-Source
• Vast Libraries Support
• Portability and many more.

Portfolio: Universedeveloper.netlify.app | WhatsApp: +923181482800 | Lecturer: Zeeshan Hussain


IF ANY QUESTION, YOU CAN
ASK!

Portfolio: Universedeveloper.netlify.app | WhatsApp: +923181482800 | Lecturer: Zeeshan Hussain


THANK YOU!

Portfolio: Universedeveloper.netlify.app | WhatsApp: +923181482800 | Lecturer: Zeeshan Hussain

You might also like