Rereading notes from 108 and attending rampup session do helped a lot.
( I like the sheet that received at rampup session!)
Things from CSC108 notes:
week1
- Python as a calculator: Arithmetic operators (/ float, // int)
- Syntax(valid combination) vs Semantics(meaning of combination)
- Variables (Name start with letter or _ )
- Function (Define, Calls, Built-in)
week2
- String(Escape Sequesces '\', format{})
- Input / Output
- Function Design steps(Example, Type, Header, Description, Body, Test)
- Call Stack(assignment statement, return expression)
week3
- Bool(comparison, logical)
- Converting(e.g. str())
- Import( import math or math.())
- If, elif, else
week4
- More String(==, !=, <, >, <=, >=, in, len(), cannot be modified)
- Index and Slices
- Inside Object( dir(str))
- Loop(for variables in str:)
- Accumulator(number, string)
- While
week5
- Nested Loops
- Range
- Turples(Immutable)
week6
- Nested Lists(visualizer)
- Files(open, write, readline)
week7
- Dictionary(unique key, order doesn't matter)
week8
- Files(Random Story Generation, representing, working with data)
week9
- Test Cases
- Unittest
week10
- Run Time Complexity of Functions
- Sorting Algorithms(Selection, Bubble, Insertion)
week11
- Object-Oriented Programming Class Event/Day
What's new for me is conceps are introduced.
copying concepts just for my own convenience.
- 15.11 Glossary
- attribute
- One of the named data items that makes up an instance.
- class
- A user-defined compound type. A class can also be thought of as a template for the objects that are instances of it. (The iPhone is a class. By December 2010, estimates are that 50 million instances had been sold!)
- constructor
- Every class has a “factory”, called by the same name as the class, for making new instances. If the class has an initializer method, this method is used to get the attributes (i.e. the state) of the new object properly set up.
- initializer method
- A special method in Python (called __init__) that is invoked automatically to set a newly created object’s attributes to their initial (factory-default) state.
- instance
- An object whose type is of some class. Instance and object are used interchangeably.
- instantiate
- To create an instance of a class, and to run its initializer.
- method
- A function that is defined inside a class definition and is invoked on instances of that class.
- object
- A compound data type that is often used to model a thing or concept in the real world. It bundles together the data and the operations that are relevant for that kind of data. Instance and object are used interchangeably.
- object-oriented programming
- A powerful style of programming in which data and the operations that manipulate it are organized into objects.
- object-oriented language
- A language that provides features, such as user-defined classes and inheritance, that facilitate object-oriented programming.
No comments:
Post a Comment