0% found this document useful (0 votes)
70 views10 pages

Introduction To Computer Programming: With Python

This document provides an introduction to computer programming with Python. It discusses computers basics including definitions of hardware and software. It also covers programming basics such as algorithms, flow charts, source code, object code, syntax, output, and consoles. Different programming languages such as FORTRAN, COBOL, LISP, BASIC and their uses are described. Translators like assemblers, compilers and interpreters are defined. Finally, it explains the differences between compiling and interpreting programs.

Uploaded by

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

Introduction To Computer Programming: With Python

This document provides an introduction to computer programming with Python. It discusses computers basics including definitions of hardware and software. It also covers programming basics such as algorithms, flow charts, source code, object code, syntax, output, and consoles. Different programming languages such as FORTRAN, COBOL, LISP, BASIC and their uses are described. Translators like assemblers, compilers and interpreters are defined. Finally, it explains the differences between compiling and interpreting programs.

Uploaded by

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

CS-106

Introduction to Computer Programming


with Python

SAQIB SHAHID RAHIM


Lecturer, Computing & Technology Deptt
ABASYN University Peshawar, Pakistan

1
Lecture 1

2
Computers basics
 Computer Definition
 Software & Hardware
 Types of S/W : System and Application software
 Types of H/W

3
Programming basics
 Computer software is a set of program instructions, including
related data and documentation, that can be executed by computer.

 Computer Program is a set of instructions in a specific


programming language to perform a specific task.

 Algorithm is a finite number of clearly described, unambiguous steps


that can be systematically followed to produce a desired result for
given input in a finite amount of time.

 Flow Chart is a pictorial representation of a program or software that


shows the working or operational flow of a program or software.

4
Programming basics
 source code: The sequence of instructions in a program.

 Object code: Translated sequence of instructions in binary

 syntax: The set of legal structures and commands that can be used in a
particular programming language.
 output: The result to the user by a program.

 console:The word console is an old computer term that refers to the text entry and
display on device of a computer.
 Console input means to receive input from the keyboard

 Console output means to display output to the monitor.

5
Programming Languages

Machine
Assembly

High Level

6
Well known Languages
 Some influential ones:
 FORTRAN
 science / engineering

 COBOL
 business data

 LISP
 logic and AI

 BASIC
 a simple language

7
Well known Languages

8
Translators
 Assembler
 Compiler
 Interpreter

9
Compiling and Interpreting
 Many languages require you to compile (translate) your program into a
form that the machine understands.
compile execute
source code byte code output
Hello.java Hello.class

 Python is instead directly interpreted into machine instructions.


interpret
source code output
Hello.py

10

You might also like