0% found this document useful (0 votes)
27 views3 pages

CP Reviewer Keyword

The document provides an introduction to Python including its history, applications, programming paradigms, data types, variables, operators, and basic programming concepts. It covers Python syntax, comments, keywords, statements, and data types like integers, floats, strings, booleans, lists, tuples, and dictionaries. It also discusses variables, expressions, and operators.

Uploaded by

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

CP Reviewer Keyword

The document provides an introduction to Python including its history, applications, programming paradigms, data types, variables, operators, and basic programming concepts. It covers Python syntax, comments, keywords, statements, and data types like integers, floats, strings, booleans, lists, tuples, and dictionaries. It also discusses variables, expressions, and operators.

Uploaded by

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

LESSON 1: GETTING STARTED WITH PYTHON

PYTHON - created by Guido van Rossum


- release Febuary 1991
- readability and simplicity
- easy to learn and understand
- most widely used programming languages
- high-level, general-purpose programming language

VARIOUS APPLICATION
1. Web Development
2. Data Science
3. AI
4. Automation and more

PROGRAMMING PARADIGMS
1. Procedural
2. Object-Oriented
3. Functional

COMMENTS - provide explanations or annotations


- ignored by the Python interpreter
- supports single-line comments

KEYWORDS - set of reserved words / cannot be used as variable names

SYNTAX - designed to be readable and straightforward. It uses indentation

STATEMENTS - consist of statements.

DATA TYPES
1. INTEGERS(int) - Whole numbers without a decimal point
2. FLOATS(float) - Numbers with a decimal point
3. STRINGS(str) - Sequence of characters enclosed in single (') or double (") quotes
4. BOOLEANS(bool) - Represents True or False
5. LISTS - collection ofitems, mutable
6. TUPLES - collection ofitems, immutable
7. DICTIONARIES - Unordered collection of key-value pairs

VARIABLES - used to store data values


EXPRESSION - combinations of values and operators (EX. 2+3 is an expression that evaluates to 5.)
OPERATORS - supports various operators

arithmetic operators (+, -,*, /, %)


comparison operators (==, !=, <, >, <=, >=)
comparison operators (==, !=, <, >, <=, >=)
assignment operators (=, +=, -=,*=, /=)

LESSON : PROGRAMMING CONCEPTS

PROGRAMMING - process of writing computer programs


COMPUTER PROGRAM - detailed plan or procedure
PROGRAMMING LANGUAGES - formal language that is used to write computer programs.

3 TYPES OF PROGRAMMING LANGUAGES


1. MACHINE LANGUAGE - binary or hexadecimal
2. LOW LEVEL PROGRAMMING LANGUAGE (ASSEMBLY LANGUAGE) - little or no abstraction
3. HIGH LEVEL PROGRAMMING LANGUAGE - strong abstraction

6 BASIC STEPS IN COMPUTER PROGRAMMING


1. Problem Definition
2. Algorithm Design
3. Coding
4. Compilation / Interpretation
5. Testing and Debugging
6. Documentation and Maintenance

LESSON : INTRODUCTION TO PROGRAM LOGIC FORMULATION AND PROGRAM CODING

ALGORITHM – step by step instruction


- representation of a solution to a problem

PSEUDOCODE – simply a numbered list of instructions


- simpler version of programming code
- high level way of representing an algorithm

WAYS OF WRITING PSEUDOCODE


1. Number each instruction
2. Each instruction should be unambiguous and effective, and
3. Completeness. Nothing is left out.
BASIC ELEMENTS OF PSEUDOCODE
1. Variable – having a name and value
2. Assigned Operation – the one which associates a value to a variable
3. Read Operation – intends to retrieve the value
4. Read and Input from user – get the value of a variable
5. Print the output to the user

You might also like