Home | Test Prep | Challenges | Create Task | Project Plans | About Me |
Weekly Challenges
Replit Embed
TT Key Learnings
- Try-except: helps identify error during debugging using hard coded error message that identifies the bug
- List: collection of index values pairs (array in JS)
- Dictionary: hashed structure of key and value pairs
- OOP: programming paradigm that allows you to package together data states and functionality to modify those data states, while keeping the details hidden away; flexible + abstracts complexity
- Class starts OOP
- Language elements (constructs) we use in Python are objects, this includes its variables(attributes) and functions(methods)
- Class = blueprint/template
- Class is used to construct object
- init() - object constructor
- call() - default object method
- app = Flask(name)
- app is a variable with data type object
- login_manager = LoginManager(): LoginManager object
-
from flask_login import UserMixin
class Users(UserMixin, db.Model):
- inheritance; inheriting 2 classes
- is_anonymous: guest user
- userID, account number: primary key
- SHA 256: password encryption
- Werkzeug is included in Flask