Complete the code to check if a website URL starts with a secure protocol.
if url.startswith([1]): print("Secure connection")
Websites that start with https:// use a secure connection.
Complete the code to block access to a list of unsafe websites.
if website in [1]: print("Access blocked")
We check if the website is in the list of unsafe_sites to block it.
Fix the error in the code that warns about suspicious links.
if 'http://' [1] url: print("Warning: Suspicious link")
The keyword in checks if 'http://' is part of the URL string.
Fill both blanks to create a dictionary of websites with their safety status.
site_status = {site: [1] for site in websites if site [2] unsafe_sites}We convert site names to lowercase and include only those not in unsafe_sites.
Fill all three blanks to filter and map safe websites with their URL lengths.
safe_lengths = [1]: len([2]) for [3] in websites if [2] not in unsafe_sites}
We use 'site' as the key, 'url' as the value to measure length, and iterate with 'site'.
