CDS1010: Introduction to Programming
The slides below are meant only as a glossary of terms used in class. They are by no means comprehensive of our in-class activities.
- Week 0 – Hello, World! programming environment, variables, functions, strings
- Week 1A – Decisions I f-strings, floats, rounding, Booleans, if/else conditional logic
- Week 1B – Decisions II if/elif/else, pass, string formatting with escaping and long/multi-line/raw strings
- Week 2A – While Loops while loops, sets, input validation, counter/accumulator/sentinel/flag patterns, break/continue/else
- Week 2B – And, Or, Not logical operators (and/or/not), operator precedence, random.randint
- Week 3A – Lists and For Loops lists, indexing, len, membership, strings as sequences, range, for loops, list.append, random.choice
- Week 4 mini – More List Methods list + and *, append/pop, remove/count/index/insert, sort/reverse, random.shuffle
- Week 5 mini – Functions functions, def, parameters, scope
- Week 6 – Functions II functions as contracts/promises, docstrings, multiple return values, unpacking, helper functions