Unit 7 Python Programming
Unit 7 Python Programming
Programming
What is Programming?
Programming Languages
Translators
1. Compiler
Converts the entire source code into machine code before execution.
Faster execution after compilation (e.g., C, Java).
2. Interpreter
Translates and runs code line by line.
Slower than compilers but useful for debugging (e.g., Python).
3. Assembler
Converts assembly language into machine code.
OOP Concepts
Python Programming
Features of Python
Easy-to-read syntax.
Interpreted (code runs directly without compilation).
Supports object-oriented programming.
Extensive libraries for various applications.
Tokens
Variables
Operators