These Python Full Stack questions use examples you can try in a beginner project. Start with the terms you encounter in your own work.
What is a Python dictionary?
A dictionary maps keys to values. For a task record, keys such as title and status let you retrieve each field by name.
What is the difference between a list and a tuple in Python?
A list can be changed in place. A tuple keeps the same items in the same positions after creation, although an item can itself be mutable.
What is a Python function?
A function packages a step you can call by name. It can accept inputs and return a result, such as returning a total from a list of prices.
When should I use try and except in Python?
Use them when you can handle a specific expected failure, such as invalid input. Catch the particular exception and give the caller a useful message or fallback.
What is a Django model?
A model is a Python class that describes stored data and its behavior. For example, a Task model can define a title, completion status and owner.
What is a Django view?
A view receives a web request and returns a response. It may load records and render a template or return JSON for a frontend.
What is the difference between Django authentication and authorization?
Authentication establishes who the user is. Authorization decides whether that user may perform an action, such as deleting a particular record.
How should I test a Django task tracker?
Test creating, editing and deleting a task, then repeat the requests as a second user to verify that ownership checks prevent access.
For more course topics, see the ScholarLogic beginner Q&A guide.