0
0
SEO Fundamentalsknowledge~30 mins

Local keyword targeting in SEO Fundamentals - Mini Project: Build & Apply

Choose your learning style9 modes available
Local Keyword Targeting
📖 Scenario: You are managing a website for a local bakery that wants to attract customers in its city and nearby areas.
🎯 Goal: Build a list of local keywords that include the bakery's city and nearby neighborhoods to improve search engine visibility.
📋 What You'll Learn
Create a list of base keywords related to bakery products
Add a variable for the city name
Generate a new list combining base keywords with the city name
Add nearby neighborhood names to extend the keyword list
💡 Why This Matters
🌍 Real World
Local keyword targeting helps small businesses appear in search results when people look for services nearby, increasing local customer visits.
💼 Career
SEO specialists and digital marketers use local keyword strategies to improve website traffic and attract customers in specific geographic areas.
Progress0 / 4 steps
1
Create base keywords list
Create a list called base_keywords with these exact bakery-related keywords: "bread", "cakes", "pastries", "cookies".
SEO Fundamentals
Need a hint?

Use square brackets to create a list and include the keywords as strings.

2
Add city name variable
Create a variable called city and set it to the string "Springfield".
SEO Fundamentals
Need a hint?

Assign the city name as a string to the variable city.

3
Combine base keywords with city name
Create a new list called local_keywords by combining each keyword in base_keywords with the city name city, separated by a space. Use a list comprehension with keyword as the iterator variable.
SEO Fundamentals
Need a hint?

Use an f-string inside the list comprehension to join keyword and city with a space.

4
Add nearby neighborhoods to keywords
Create a list called neighborhoods with these exact names: "Downtown", "Riverside", "Hilltop". Then extend local_keywords by adding keywords combining each base keyword with each neighborhood name, separated by a space. Use nested loops with keyword and neighborhood as iterator variables.
SEO Fundamentals
Need a hint?

Create the neighborhoods list first, then use nested for loops to add new keywords to local_keywords.