# Python class with type hintsfrom typing import List, Optionalclass TaskManager: def __init__(self) -> None: self.tasks: List[str] = [] def add_task(self, task: str) -> None: """Add a new task to the list.""" self.tasks.append(task) def get_task(self, index: int) -> Optional[str]: """Get a task by index, return None if not found.""" return self.tasks[index] if 0 <= index < len(self.tasks) else None/* Modern CSS with custom properties */:root { --primary-color: #3b82f6; --secondary-color: #64748b; --border-radius: 0.5rem;}.card { background: white; border-radius: var(--border-radius); box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); padding: 1.5rem; transition: transform 0.2s ease-in-out;}.card:hover { transform: translateY(-2px);}