You are on page 1of 2

ICS104 Introduction to Programming C CH:1

 The computer is a machine that stores data, interacts with devices, and
executes programs. Computers execute very basic instructions in rapid
succession.

 Programming is the act of designing and implementing computer programs.

 A computer program is a sequence of instructions and decisions. The programs


the computer executes are called the software.

 The physical computer and peripheral devices are collectively called the
hardware.

 The central processing unit (CPU) performs program control and data
processing. It carries out arithmetic operations such as addition, subtraction,
multiplication, and division.

 Storage devices include memory and secondary storage.

 The computer stores both data and programs. They are located in secondary
storage and loaded into memory when the program starts.

 Python is a high-level programing language developed in the early 1990s by


Guido van Rossum.

1. Case sensitive.

2. Free and open source and easy to install.

3. Interpreted (no compilation).

4. Interactive (code and output).

5. Clear and easy to learn.

6. Error handling.

7. Cross platform.

8. Integrated with other languages.

9. Memory Management (Garbage Collection).

10.OOP (Object-Oriented Programing).

Mr. Obaid - 0544081911


ICS104 Introduction to Programming C CH:1

 Python Applications:

1. Desktop Applications.
2. Web development.
3. Games.
4. Hacking.
5. Machine Learning.
6. AI and Robots.
7. Automation.
8. Web scrapping (Harvest).

 A text editor is a program for entering and modifying text, such as a Python
program.

 Python Interpreter:

 The compiler reads the file containing your source code and translates the
instructions into byte code.

 Python Errors:

1. Compile-Time Error (Syntax Error): is a violation of the programming


language rules that is detected when the code is translated into executable
form.
2. An exception: occurs when an instruction is syntactically correct, but
impossible to perform.
3. Run-Time Error (Logic Error): occurs when the program is compiled and runs,
but produces unexpected results.

 Algorithm (Pseudocode): is a sequence of steps that is unambiguous,


executable, and terminating.

 A function is a collection of instructions that perform a particular task.

Mr. Obaid - 0544081911

You might also like