Computer Programming Basics
1. Introduction to Computer Programming
- Programming is the process of creating a set of instructions that tell a computer how to perform a
task.
- Programs are written in programming languages such as Python, Java, C, etc.
2. Types of Programming Languages
- Low-Level Languages: Machine language, Assembly language.
- High-Level Languages: C, C++, Java, Python, etc.
3. Programming Concepts
- Variables: Used to store data values.
- Data Types: Integer, Float, String, Boolean.
- Operators: Arithmetic, Logical, Comparison.
- Control Structures: if-else, loops (for, while).
- Functions: Block of code which only runs when it is called.
4. Introduction to Python (Example Language)
- Easy to read and write.
- Example:
print("Hello, World!")
a=5
b = 10
print(a + b)
1. Introduction to Computer Programming
- Programming is the process of creating a set of instructions that tell a computer how to perform a
task.
- Programs are written in programming languages such as Python, Java, C, etc.
2. Types of Programming Languages
- Low-Level Languages: Machine language, Assembly language.
- High-Level Languages: C, C++, Java, Python, etc.
3. Programming Concepts
- Variables: Used to store data values.
- Data Types: Integer, Float, String, Boolean.
- Operators: Arithmetic, Logical, Comparison.
- Control Structures: if-else, loops (for, while).
- Functions: Block of code which only runs when it is called.
4. Introduction to Python (Example Language)
- Easy to read and write.
- Example:
print("Hello, World!")
a=5
b = 10
print(a + b)