Skip to main content

Command Palette

Search for a command to run...

ACTIVITY: Master the Python Dictionaries Data Structures

Updated
14 min read
T

I am a dedicated and skilled Software Engineer specializing in mobile app development, backend systems, and creating secure APIs. With extensive experience in both SQL and NoSQL databases, I have a proven track record of delivering robust and scalable solutions.

Key Expertise:

Mobile App Development: I make high-quality apps for Android and iOS, ensuring they are easy to use and work well.

Backend Development: Skilled in designing and implementing backend systems using various frameworks and languages to support web and mobile applications.

Secure API Creation: Expertise in creating secure APIs, ensuring data integrity and protection across platforms.

Database Management: Experienced with SQL databases such as MySQL, and NoSQL databases like Firebase, managing data effectively and efficiently.

Technical Skills: Programming Languages: Java, Dart, Python, JavaScript, Kotlin, PHP

Frameworks: Angular, CodeIgniter, Flutter, Flask, Django

Database Systems: MySQL, Firebase

Cloud Platforms: AWS, Google Cloud Console

I love learning new things and taking on new challenges. I am always eager to work on projects that make a difference.

  1. Create 50 Python Files

    • Create 50 Python files, each focusing on dictionary manipulation.
  2. GitHub Commit Requirement

    • You must make 50 commits in your GitHub repository, with each commit corresponding to the creation or update of a Python file.

    • Example commit messages:

  3. File Requirements

    • Each Python file should involve dictionary manipulation.
  4. Create documentation on medium.com or hashnode.com Explain your code and include the github repository link

  5. Don't use AI to generate your code. Instead, focus on mastering and understanding list data structures in Python.


1. student_grades_dict.py

  1. Create a dictionary of 5 students and their corresponding grades.

  2. Print the entire dictionary.

  3. Access and print the grade of the 3rd student.

    • Example: print("Grade of third student:", dict['Student3'])
  4. Update the grade of the 2nd student.

    • Example: dict['Student2'] = 'A'
  5. Delete the entry of the 5th student.

    • Example: del dict['Student5']
  6. Print the last key-value pair in the dictionary.


2. animal_sounds_dict.py

  1. Create a dictionary of 8 animals and their corresponding sounds.

  2. Print the entire dictionary.

  3. Access and print the sound of the 4th animal.

  4. Update the sound of the 7th animal.

  5. Delete the 5th animal from the dictionary.

  6. Print the last key-value pair in the dictionary.


3. city_population_dict.py

  1. Create a dictionary of 10 cities and their corresponding population.

  2. Print the entire dictionary.

  3. Access and print the population of the 6th city.

  4. Update the population of the 3rd city.

  5. Delete the 9th city from the dictionary.

  6. Print the last key-value pair in the dictionary.


4. country_capital_dict.py

  1. Create a dictionary of 12 countries and their capitals.

  2. Print the entire dictionary.

  3. Access and print the capital of the 5th country.

  4. Update the capital of the 8th country.

  5. Delete the 11th country from the dictionary.

  6. Print the last key-value pair in the dictionary.


5. programming_languages_dict.py

  1. Create a dictionary of 7 programming languages and their developers.

  2. Print the entire dictionary.

  3. Access and print the developer of the 4th programming language.

  4. Update the developer of the 6th programming language.

  5. Delete the 2nd programming language from the dictionary.

  6. Print the last key-value pair in the dictionary.


6. car_brands_dict.py

  1. Create a dictionary of 10 car brands and their country of origin.

  2. Print the entire dictionary.

  3. Access and print the country of origin of the 3rd car brand.

  4. Update the country of origin of the 7th car brand.

  5. Delete the 8th car brand from the dictionary.

  6. Print the last key-value pair in the dictionary.


7. book_authors_dict.py

  1. Create a dictionary of 12 books and their authors.

  2. Print the entire dictionary.

  3. Access and print the author of the 9th book.

  4. Update the author of the 5th book.

  5. Delete the 3rd book from the dictionary.

  6. Print the last key-value pair in the dictionary.


8. fruit_colors_dict.py

  1. Create a dictionary of 8 fruits and their corresponding colors.

  2. Print the entire dictionary.

  3. Access and print the color of the 6th fruit.

  4. Update the color of the 4th fruit.

  5. Delete the 7th fruit from the dictionary.

  6. Print the last key-value pair in the dictionary.


9. movie_directors_dict.py

  1. Create a dictionary of 10 movies and their directors.

  2. Print the entire dictionary.

  3. Access and print the director of the 5th movie.

  4. Update the director of the 9th movie.

  5. Delete the 7th movie from the dictionary.

  6. Print the last key-value pair in the dictionary.


10. software_companies_dict.py

  1. Create a dictionary of 10 software companies and their headquarters.

  2. Print the entire dictionary.

  3. Access and print the headquarters of the 3rd company.

  4. Update the headquarters of the 8th company.

  5. Delete the 9th company from the dictionary.

  6. Print the last key-value pair in the dictionary.


11. sports_players_dict.py

  1. Create a dictionary of 10 sports and their most famous players.

  2. Print the entire dictionary.

  3. Access and print the player of the 4th sport.

  4. Update the player of the 6th sport.

  5. Delete the 10th sport from the dictionary.

  6. Print the last key-value pair in the dictionary.


12. university_courses_dict.py

  1. Create a dictionary of 8 universities and their popular courses.

  2. Print the entire dictionary.

  3. Access and print the course of the 3rd university.

  4. Update the course of the 5th university.

  5. Delete the 7th university from the dictionary.

  6. Print the last key-value pair in the dictionary.


13. element_symbols_dict.py

  1. Create a dictionary of 10 elements and their chemical symbols.

  2. Print the entire dictionary.

  3. Access and print the symbol of the 6th element.

  4. Update the symbol of the 8th element.

  5. Delete the 9th element from the dictionary.

  6. Print the last key-value pair in the dictionary.


14. continent_countries_dict.py

  1. Create a dictionary of 6 continents and a list of 3 countries for each.

  2. Print the entire dictionary.

  3. Access and print the countries of the 4th continent.

  4. Update the countries of the 5th continent.

  5. Delete the 6th continent from the dictionary.

  6. Print the last key-value pair in the dictionary.


15. animal_habitats_dict.py

  1. Create a dictionary of 8 animals and their natural habitats.

  2. Print the entire dictionary.

  3. Access and print the habitat of the 3rd animal.

  4. Update the habitat of the 5th animal.

  5. Delete the 7th animal from the dictionary.

  6. Print the last key-value pair in the dictionary.


16. company_ceos_dict.py

  1. Create a dictionary of 10 companies and their current CEOs.

  2. Print the entire dictionary.

  3. Access and print the CEO of the 6th company.

  4. Update the CEO of the 3rd company.

  5. Delete the 9th company from the dictionary.

  6. Print the last key-value pair in the dictionary.


17. space_missions_dict.py

  1. Create a dictionary of 5 space missions and their corresponding years.

  2. Print the entire dictionary.

  3. Access and print the year of the 3rd mission.

  4. Update the year of the 2nd mission.

  5. Delete the 4th mission from the dictionary.

  6. Print the last key-value pair in the dictionary.


18. flower_meanings_dict.py

  1. Create a dictionary of 8 flowers and their symbolic meanings.

  2. Print the entire dictionary.

  3. Access and print the meaning of the 5th flower.

  4. Update the meaning of the 7th flower.

  5. Delete the 6th flower from the dictionary.

  6. Print the last key-value pair in the dictionary.


19. holiday_dates_dict.py

  1. Create a dictionary of 10 holidays and their corresponding dates.

  2. Print the entire dictionary.

  3. Access and print the date of the 4th holiday.

  4. Update the date of the 9th holiday.

  5. Delete the 2nd holiday from the dictionary.

  6. Print the last key-value pair in the dictionary.


20. river_lengths_dict.py

  1. Create a dictionary of 6 rivers and their lengths in kilometers.

  2. Print the entire dictionary.

  3. Access and print the length of the 2nd river.

  4. Update the length of the 5th river.

  5. Delete the 4th river from the dictionary.

  6. Print the last key-value pair in the dictionary.


21. app_store_ratings_dict.py

  1. Create a dictionary of 10 apps and their user ratings.

  2. Print the entire dictionary.

  3. Access and print the rating of the 6th app.

  4. Update the rating of the 8th app.

  5. Delete the 9th app from the dictionary.

  6. Print the last key-value pair in the dictionary.


22. movie_genres_dict.py

  1. Create a dictionary of 8 movie genres and their corresponding example movies.

  2. Print the entire dictionary.

  3. Access and print the example movie of the 3rd genre.

  4. Update the example movie of the 5th genre.

  5. Delete the 7th genre from the dictionary.

  6. Print the last key-value pair in the dictionary.


23. technology_inventors_dict.py

  1. Create a dictionary of 6 technologies and their inventors.

  2. Print the entire dictionary.

  3. Access and print the inventor of the 4th technology.

  4. Update the inventor of the 2nd technology.

  5. Delete the 6th technology from the dictionary.

  6. Print the last key-value pair in the dictionary.


24. currency_symbols_dict.py

  1. Create a dictionary of 10 currencies and their symbols.

  2. Print the entire dictionary.

  3. Access and print the symbol of the 5th currency.

  4. Update the symbol of the 9th currency.

  5. Delete the 3rd currency from the dictionary.

  6. Print the last key-value pair in the dictionary.


25. video_game_platforms_dict.py

  1. Create a dictionary of 8 video games and their platforms.

  2. Print the entire dictionary.

  3. Access and print the platform of the 2nd video game.

  4. Update the platform of the 6th video game.

  5. Delete the 4th video game from the dictionary.

  6. Print the last key-value pair in the dictionary.

26. planet_distances_dict.py

  1. Create a dictionary of 8 planets and their distances from the sun (in million kilometers).

  2. Print the entire dictionary.

  3. Access and print the distance of the 3rd planet.

  4. Update the distance of the 5th planet.

  5. Delete the 7th planet from the dictionary.

  6. Print the last key-value pair in the dictionary.


27. product_prices_dict.py

  1. Create a dictionary of 10 products and their prices.

  2. Print the entire dictionary.

  3. Access and print the price of the 4th product.

  4. Update the price of the 9th product.

  5. Delete the 6th product from the dictionary.

  6. Print the last key-value pair in the dictionary.


28. athlete_achievements_dict.py

  1. Create a dictionary of 8 athletes and their greatest achievements.

  2. Print the entire dictionary.

  3. Access and print the achievement of the 5th athlete.

  4. Update the achievement of the 3rd athlete.

  5. Delete the 7th athlete from the dictionary.

  6. Print the last key-value pair in the dictionary.


29. phone_models_dict.py

  1. Create a dictionary of 10 phone models and their manufacturers.

  2. Print the entire dictionary.

  3. Access and print the manufacturer of the 2nd phone model.

  4. Update the manufacturer of the 8th phone model.

  5. Delete the 6th phone model from the dictionary.

  6. Print the last key-value pair in the dictionary.


30. software_versions_dict.py

  1. Create a dictionary of 6 software programs and their latest versions.

  2. Print the entire dictionary.

  3. Access and print the version of the 4th software.

  4. Update the version of the 2nd software.

  5. Delete the 5th software from the dictionary.

  6. Print the last key-value pair in the dictionary.


31. festival_dates_dict.py

  1. Create a dictionary of 10 festivals and their celebration dates.

  2. Print the entire dictionary.

  3. Access and print the date of the 3rd festival.

  4. Update the date of the 7th festival.

  5. Delete the 5th festival from the dictionary.

  6. Print the last key-value pair in the dictionary.


32. company_founders_dict.py

  1. Create a dictionary of 8 companies and their founders.

  2. Print the entire dictionary.

  3. Access and print the founder of the 6th company.

  4. Update the founder of the 2nd company.

  5. Delete the 8th company from the dictionary.

  6. Print the last key-value pair in the dictionary.


33. car_specs_dict.py

  1. Create a dictionary of 10 car models and their engine specifications.

  2. Print the entire dictionary.

  3. Access and print the specifications of the 4th car model.

  4. Update the specifications of the 9th car model.

  5. Delete the 5th car model from the dictionary.

  6. Print the last key-value pair in the dictionary.


34. artist_songs_dict.py

  1. Create a dictionary of 8 artists and their top songs.

  2. Print the entire dictionary.

  3. Access and print the top song of the 3rd artist.

  4. Update the top song of the 6th artist.

  5. Delete the 7th artist from the dictionary.

  6. Print the last key-value pair in the dictionary.


35. dog_breeds_dict.py

  1. Create a dictionary of 10 dog breeds and their sizes (small, medium, large).

  2. Print the entire dictionary.

  3. Access and print the size of the 5th breed.

  4. Update the size of the 8th breed.

  5. Delete the 6th breed from the dictionary.

  6. Print the last key-value pair in the dictionary.


36. historical_events_dict.py

  1. Create a dictionary of 8 historical events and their years.

  2. Print the entire dictionary.

  3. Access and print the year of the 2nd event.

  4. Update the year of the 7th event.

  5. Delete the 5th event from the dictionary.

  6. Print the last key-value pair in the dictionary.


37. state_capitals_dict.py

  1. Create a dictionary of 10 states and their capitals.

  2. Print the entire dictionary.

  3. Access and print the capital of the 4th state.

  4. Update the capital of the 9th state.

  5. Delete the 7th state from the dictionary.

  6. Print the last key-value pair in the dictionary.


38. plant_types_dict.py

  1. Create a dictionary of 8 plants and their types (e.g., shrub, tree, herb).

  2. Print the entire dictionary.

  3. Access and print the type of the 5th plant.

  4. Update the type of the 2nd plant.

  5. Delete the 6th plant from the dictionary.

  6. Print the last key-value pair in the dictionary.


39. music_albums_dict.py

  1. Create a dictionary of 10 music albums and their release years.

  2. Print the entire dictionary.

  3. Access and print the release year of the 3rd album.

  4. Update the release year of the 8th album.

  5. Delete the 5th album from the dictionary.

  6. Print the last key-value pair in the dictionary.


40. city_landmarks_dict.py

  1. Create a dictionary of 8 cities and their famous landmarks.

  2. Print the entire dictionary.

  3. Access and print the landmark of the 6th city.

  4. Update the landmark of the 2nd city.

  5. Delete the 7th city from the dictionary.

  6. Print the last key-value pair in the dictionary.


41. space_telescope_missions_dict.py

  1. Create a dictionary of 5 space telescopes and their missions.

  2. Print the entire dictionary.

  3. Access and print the mission of the 3rd telescope.

  4. Update the mission of the 1st telescope.

  5. Delete the 4th telescope from the dictionary.

  6. Print the last key-value pair in the dictionary.


42. dinosaur_fossils_dict.py

  1. Create a dictionary of 7 dinosaurs and where their fossils were found.

  2. Print the entire dictionary.

  3. Access and print the location of the 4th dinosaur's fossils.

  4. Update the location of the 2nd dinosaur's fossils.

  5. Delete the 6th dinosaur from the dictionary.

  6. Print the last key-value pair in the dictionary.


43. author_books_dict.py

  1. Create a dictionary of 8 authors and their famous books.

  2. Print the entire dictionary.

  3. Access and print the book of the 5th author.

  4. Update the book of the 7th author.

  5. Delete the 6th author from the dictionary.

  6. Print the last key-value pair in the dictionary.


44. coffee_types_dict.py

  1. Create a dictionary of 10 types of coffee and their descriptions.

  2. Print the entire dictionary.

  3. Access and print the description of the 4th type of coffee.

  4. Update the description of the 8th type of coffee.

  5. Delete the 5th type of coffee from the dictionary.

  6. Print the last key-value pair in the dictionary.


45. job_salaries_dict.py

  1. Create a dictionary of 10 jobs and their average salaries.

  2. Print the entire dictionary.

  3. Access and print the salary of the 3rd job.

  4. Update the salary of the 7th job.

  5. Delete the 9th job from the dictionary.

  6. Print the last key-value pair in the dictionary.


46. food_recipes_dict.py

  1. Create a dictionary of 8 foods and their recipes.

  2. Print the entire dictionary.

  3. Access and print the recipe of the 5th food.

  4. Update the recipe of the 3rd food.

  5. Delete the 7th food from the dictionary.

  6. Print the last key-value pair in the dictionary.


47. festival_locations_dict.py

  1. Create a dictionary of 8 festivals and their locations.

  2. Print the entire dictionary.

  3. Access and print the location of the 4th festival.

  4. Update the location of the 6th festival.

  5. Delete the 2nd festival from the dictionary.

  6. Print the last key-value pair in the dictionary.


48. beaches_countries_dict.py

  1. Create a dictionary of 8 beaches and the countries they are located in.

  2. Print the entire dictionary.

  3. Access and print the country of the 3rd beach.

  4. Update the country of the 6th beach.

  5. Delete the 5th beach from the dictionary.

  6. Print the last key-value pair in the dictionary.


49. sports_events_dict.py

  1. Create a dictionary of 7 sports events and their corresponding years.

  2. Print the entire dictionary.

  3. Access and print the year of the 3rd sports event.

  4. Update the year of the 6th sports event.

  5. Delete the 5th sports event from the dictionary.

  6. Print the last key-value pair in the dictionary.


50. technology_innovators_dict.py

  1. Create a dictionary of 8 technologies and their innovators.

  2. Print the entire dictionary.

  3. Access and print the innovator of the 4th technology.

  4. Update the innovator of the 2nd technology.

  5. Delete the 6th technology from the dictionary.

  6. Print the last key-value pair in the dictionary.

Important Note:

Don't use AI to generate your code. Instead, focus on mastering and understanding dictionary data structures in Python. Once you complete the 50 Python files, create a blog post on medium.com or hashnode.com to explain your code and provide a link to your GitHub repository for reference.

75 views

More from this blog

T

Thirdy Gayares

99 posts

Software Engineer | Mobile Developer | Data Scientist