How would you modify your previous script to track login attempts for all users simultaneously?
Implement track_login_attempts(attempts), where each attempt is [username, successful]. Return a dictionary mapping each username to its total attempt count and failed attempt count. Preserve the order in which usernames first appear.
{"total": int, "failed": int}.def track_login_attempts(attempts):