Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lernen Challenge: Flag Slow Pages | On-Page and Technical SEO Analysis with Python
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
Python for SEO Specialists

bookChallenge: 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.

Aufgabe

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_times dictionary.
  • 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.

Lösung

War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 3. Kapitel 7
single

single

Fragen Sie AI

expand

Fragen Sie AI

ChatGPT

Fragen Sie alles oder probieren Sie eine der vorgeschlagenen Fragen, um unser Gespräch zu beginnen

Suggested prompts:

What Python code can I use to find URLs with load times over 2.5 seconds?

Can you explain why slow-loading pages affect SEO?

Can you show an example of the dictionary structure for this task?

close

bookChallenge: Flag Slow Pages

Swipe um das Menü anzuzeigen

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.

Aufgabe

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_times dictionary.
  • 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.

Lösung

Switch to desktopWechseln Sie zum Desktop, um in der realen Welt zu übenFahren Sie dort fort, wo Sie sind, indem Sie eine der folgenden Optionen verwenden
War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 3. Kapitel 7
single

single

some-alt