- variables and data types
- control flow (if statements and loops)
- functions and modular design
- debugging and testing practices
- Use descriptive names for clarity
- Initialize variables before use
- Understand type conversion rules
- keep conditions simple and readable
- limit loop depth to avoid infinite runs
- break out of loops early when possible
- prefer early returns over nested blocks
- Give each function a clear purpose
- Limit arguments to essential values
- Include comments explaining inputs and outputs
| Concept | Python | Javascript | Java |
|---|---|---|---|
| Variable declaration | age = 25 | let age = 25; | int age = 25; |
| If statement | if age >= 18: print("adult") | if (age >= 18) console.log("adult"); | if (age >= 18) { System.out.println("adult"); } |
| For loop | for i in range(5): | for (let i=0; i<5; i++){ | for int i=0; i<5; i++ |