Challenge: Flag Slow Pages
Flagging slow-loading pages is a crucial aspect of technical SEO audits. Pages with high load times can negatively impact user experience and search engine rankings. In this exercise, you will work with a dictionary that contains page URLs as keys and their corresponding load times (in seconds) as values. Your task is to identify and return the URLs for pages that take longer than 2.5 seconds to load.
Swipe to start coding
Given a dictionary where each key is a page URL and each value is the page's load time in seconds, return a list of URLs for pages with load times greater than 2.5 seconds.
- Iterate through all items in the
load_timesdictionary. - Check if the load time for each URL is greater than 2.5 seconds.
- Add the URL to the result list if its load time is greater than 2.5 seconds.
- Return the list of URLs that meet this condition.
Solução
Obrigado pelo seu feedback!
single
Pergunte à IA
Pergunte à IA
Pergunte o que quiser ou experimente uma das perguntas sugeridas para iniciar nosso bate-papo
Incrível!
Completion taxa melhorada para 4.76
Challenge: Flag Slow Pages
Deslize para mostrar o menu
Flagging slow-loading pages is a crucial aspect of technical SEO audits. Pages with high load times can negatively impact user experience and search engine rankings. In this exercise, you will work with a dictionary that contains page URLs as keys and their corresponding load times (in seconds) as values. Your task is to identify and return the URLs for pages that take longer than 2.5 seconds to load.
Swipe to start coding
Given a dictionary where each key is a page URL and each value is the page's load time in seconds, return a list of URLs for pages with load times greater than 2.5 seconds.
- Iterate through all items in the
load_timesdictionary. - Check if the load time for each URL is greater than 2.5 seconds.
- Add the URL to the result list if its load time is greater than 2.5 seconds.
- Return the list of URLs that meet this condition.
Solução
Obrigado pelo seu feedback!
single