Complete the code to import the session object from Flask.
from flask import [1]
The session object is imported from Flask to manage user sessions.
Complete the code to set a value in the Flask session.
session[[1]] = 'user123'
Session keys must be strings, so use quotes around the key name.
Fix the error in the code to retrieve a session value safely.
user = session.get([1], None)
The key must be a string in quotes to access the session dictionary correctly.
Fill both blanks to check if a user is logged in using the session.
if [1] in session and session[[2]] == 'admin': print('Admin user')
Check if the key 'user' exists in session and compare the 'role' value to 'admin'.
Fill all three blanks to clear the session and redirect to home page.
session.[1]() return [2](url_for([3]))
Use session.clear() to remove all session data, then redirect to the 'home' route.
