UNIT III |
CONTROL FLOW, FUNCTIONS, STRINGS |
Boolean values and operators |
|
|
Boolean values and operators |
|
Conditional (if), alternative (if-else), chained conditional (if-elif-else) |
|
|
Conditional (if), alternative (if-else), chained conditional (if-elif-else) |
|
Iteration: state, while, for; Unconditional statements: break, continue, pass |
|
|
Iteration: state, while, for; Unconditional statements: break, continue, pass |
|
Fruitful functions: return values, parameters, local and global scope, function composition, recursion |
|
|
Fruitful functions: return values, parameters, local and global scope, function composition, recursion |
|
Strings: string slices, immutability, string functions and methods, string module, Lists as arrays |
|
|
Strings: string slices, immutability, string functions and methods, string module, Lists as arrays |
|
Illustrative programs: square root, gcd, exponentiation, sum an array of numbers, linear search, binary search. |
|
|
Illustrative programs: square root, gcd, exponentiation, sum an array of numbers, linear search, binary search. |
|
|