Complete the code to print a simple cybersecurity reminder.
print('Cybersecurity is [1] responsibility!')
The phrase emphasizes that cybersecurity is a shared responsibility among all users, not just specialists.
Complete the code to check if a password is strong enough.
if len(password) [1] 8: print('Password is strong enough')
A password length of 8 or more characters is commonly recommended for strength.
Fix the error in the code that warns about suspicious emails.
if email_subject [1] 'Urgent action required': print('Be careful! This might be a phishing attempt.')
Use '==' to compare values in conditions. '=' is for assignment and causes an error here.
Fill both blanks to create a dictionary comprehension that maps users to their password lengths if length is at least 8.
{user: len(password) for user, password in user_passwords.items() if len(password) [1] 8 and user [2] 'admin'}The comprehension filters passwords with length 8 or more and excludes the 'admin' user.
Fill all three blanks to create a dictionary comprehension that maps usernames in uppercase to their passwords if password length is greater than 10.
{ [1]: [2] for user, password in credentials.items() if len(password) [3] 10 }This comprehension creates a dictionary with uppercase usernames as keys and their passwords as values, filtering passwords longer than 10 characters.