Computer Python

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 4

Computer Python

(Notes)
Definitions:-
Flowchart and Algorithms

Flowchart: A visual representation of a process


or algorithm using different shapes and arrows
to illustrate the steps.

Algorithms: A set of well-defined instructions


to solve a problem or perform a task.

Pseudocodes

Pseudocode: A way of expressing an algorithm


without conforming to the syntax of a
particular programming language.

What is a Program

Program: A set of instructions that a computer


follows to perform a specific task or solve a
problem.
Python

Python: A high-level, interpreted programming


language known for its simplicity and
readability.

Used for: Python is used for web development,


software development, data analysis, artificial
intelligence, and more.

Variables and Data Types (Python)

Variables: Containers for storing data values.

Data Types: Different categories of data, such


as integers, floats, strings, and booleans.

Comments (Python)

Comments: Explanatory notes within the code


that are not executed and are used to improve
code readability.

Python Numbers

Numbers: In Python, numbers include integers


(whole numbers) and floats (numbers with
decimal points).

Calculation with Numbers (Python)


Basic arithmetic operations like addition,
subtraction, multiplication, and division can be
performed with numbers in Python.

List in Python

List: An ordered collection of items that can


contain elements of different data types.

Conditional Statements in Python

Conditional Statements: Used to make


decisions in the code based on certain
conditions, such as if-else statements.

Loops in Python

Loops: Used to execute a block of code


repeatedly, such as for loops and while loops.

Functions in Python

Functions: A block of reusable code designed


to perform a specific task.

Error Handling in Python

Error Handling: The process of dealing with


errors that may occur during the execution of a
program.
Creating Graphics with Python

Graphics: Python provides various libraries and


modules for creating visual elements and
graphical applications.

Event Handling in Python

Event Handling: Managing and responding to


events such as mouse clicks, keypresses, and
other user interactions in a program.

You might also like