Skip to content
Sahithyan's S1 — Programming Fundamentals

A-book

Definitions

Algorithm

Finite sequence of well-defined instructions for solving a problem. Flowcharts or pseudocode can be used ot explain it.

Interpreter

A software that reads a source code file, goes through each line and runs the code.

Compiler

A software that reads a source code file, builds the software into a runnable version.

Python vs C

FeaturePythonC
SyntaxHigh-level, easy to read and writeLow-level, more complex and verbose
TypingDynamically typedStatically typed
Memory ManagementAutomatic (Garbage Collection)Manual (malloc/free)
PerformanceSlower due to interpreted natureFaster due to compiled nature
Use CasesWeb development, data analysis, scriptingSystem programming, embedded systems
Standard LibraryExtensiveLimited
CompilationInterpretedCompiled
Error HandlingException handlingError codes and manual checks
ParadigmsMulti-paradigm (procedural, OOP, functional)Procedural
PortabilityHighly portableRequires recompilation for each platform