ACTIVITY: Master Python List Data Structures

  1. Create 50 Python Files

    • Create 50 Python files, each focusing on list 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 list manipulation.
  4. Create documentation on medium.com or hashnode.com Explain your code and include the repository link

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

Example for student_name_list.py:

Create a Python file named student_name_list.py that performs the following tasks:

  1. Create a list of 20 student names.

    • a. Print the entire list.

    • b. Access and print the 15th index.

      • Example: print("15th index is", list[14])
    • c. Update the 12th index to "John".

      • Example: list[11] = "John"

      • Print the updated list.

    • d. Delete the 10th index.

      • Example: del list[9]

      • Print the updated list.

    • e. Slice the list from index 2 to 5 and print the sliced portion.

    • f. Print the last index of the list.

      • Example: print("Last index is", list[-1])
  2. 2. animal_list.py

    1. Create a list of 10 animal names.

    2. Print the entire list.

    3. Access and print the 3rd index.

    4. Update the 6th index to "Elephant".

    5. Delete the 8th index.

    6. Print the last index.


3. color_list.py

  1. Create a list of 15 colors.

  2. Print the entire list.

  3. Access and print the 10th index.

  4. Update the 4th index to "Purple".

  5. Delete the 5th index.

  6. Slice the list from index 2 to 8.

  7. Print the last index.


4. fruit_list.py

  1. Create a list of 12 fruits.

  2. Print the entire list.

  3. Access and print the 9th index.

  4. Update the 2nd index to "Mango".

  5. Delete the 10th index.

  6. Slice the list from index 4 to 7.

  7. Print the last index.


5. vegetable_list.py

  1. Create a list of 7 vegetables.

  2. Print the entire list.

  3. Access and print the 5th index.

  4. Update the 3rd index to "Spinach".

  5. Delete the 6th index.

  6. Print the last index.


6. movie_list.py

  1. Create a list of 20 movie titles.

  2. Print the entire list.

  3. Access and print the 12th index.

  4. Update the 15th index to "Inception".

  5. Delete the 18th index.

  6. Slice the list from index 8 to 13.

  7. Print the last index.


7. game_list.py

  1. Create a list of 15 video game titles.

  2. Print the entire list.

  3. Access and print the 7th index.

  4. Update the 4th index to "Minecraft".

  5. Delete the 9th index.

  6. Slice the list from index 5 to 10.

  7. Print the last index.


8. planet_list.py

  1. Create a list of 8 planet names.

  2. Print the entire list.

  3. Access and print the 3rd index.

  4. Update the 7th index to "Pluto".

  5. Delete the 4th index.

  6. Print the last index.


9. language_list.py

  1. Create a list of 14 programming languages.

  2. Print the entire list.

  3. Access and print the 11th index.

  4. Update the 9th index to "Python".

  5. Delete the 13th index.

  6. Slice the list from index 5 to 12.

  7. Print the last index.


10. flower_list.py

  1. Create a list of 10 flower names.

  2. Print the entire list.

  3. Access and print the 5th index.

  4. Update the 8th index to "Rose".

  5. Delete the 2nd index.

  6. Print the last index.


11. author_list.py

  1. Create a list of 12 famous authors.

  2. Print the entire list.

  3. Access and print the 6th index.

  4. Update the 4th index to "Mark Twain".

  5. Delete the 10th index.

  6. Slice the list from index 3 to 8.

  7. Print the last index.


12. language_spoken_list.py

  1. Create a list of 20 languages spoken around the world.

  2. Print the entire list.

  3. Access and print the 13th index.

  4. Update the 10th index to "Spanish".

  5. Delete the 16th index.

  6. Slice the list from index 6 to 11.

  7. Print the last index.


13. mountain_list.py

  1. Create a list of 8 mountain names.

  2. Print the entire list.

  3. Access and print the 5th index.

  4. Update the 3rd index to "Everest".

  5. Delete the 6th index.

  6. Print the last index.


14. company_list.py

  1. Create a list of 10 company names.

  2. Print the entire list.

  3. Access and print the 7th index.

  4. Update the 5th index to "Apple".

  5. Delete the 8th index.

  6. Print the last index.


15. pokemon_list.py

  1. Create a list of 15 Pokémon names.

  2. Print the entire list.

  3. Access and print the 9th index.

  4. Update the 12th index to "Pikachu".

  5. Delete the 10th index.

  6. Slice the list from index 4 to 7.

  7. Print the last index.


16. animal_species_list.py

  1. Create a list of 7 animal species.

  2. Print the entire list.

  3. Access and print the 2nd index.

  4. Update the 5th index to "Gorilla".

  5. Delete the 6th index.

  6. Print the last index.


17. historical_figures_list.py

  1. Create a list of 10 historical figures.

  2. Print the entire list.

  3. Access and print the 8th index.

  4. Update the 4th index to "Nelson Mandela".

  5. Delete the 7th index.

  6. Print the last index.


18. invention_list.py

  1. Create a list of 8 famous inventions.

  2. Print the entire list.

  3. Access and print the 6th index.

  4. Update the 2nd index to "Lightbulb".

  5. Delete the 5th index.

  6. Print the last index.


19. holiday_list.py

  1. Create a list of 12 holidays.

  2. Print the entire list.

  3. Access and print the 9th index.

  4. Update the 3rd index to "Christmas".

  5. Delete the 11th index.

  6. Slice the list from index 2 to 7.

  7. Print the last index.


20. dessert_list.py

  1. Create a list of 10 desserts.

  2. Print the entire list.

  3. Access and print the 4th index.

  4. Update the 6th index to "Chocolate Cake".

  5. Delete the 3rd index.

  6. Print the last index.


21. festival_list.py

  1. Create a list of 15 festivals around the world.

  2. Print the entire list.

  3. Access and print the 7th index.

  4. Update the 11th index to "Diwali".

  5. Delete the 9th index.

  6. Slice the list from index 5 to 12.

  7. Print the last index.


22. continent_list.py

  1. Create a list of 7 continents.

  2. Print the entire list.

  3. Access and print the 4th index.

  4. Update the 2nd index to "Africa".

  5. Delete the 6th index.

  6. Print the last index.


23. furniture_list.py

  1. Create a list of 12 furniture items.

  2. Print the entire list.

  3. Access and print the 8th index.

  4. Update the 5th index to "Sofa".

  5. Delete the 10th index.

  6. Print the last index.


24. social_media_list.py

  1. Create a list of 10 social media platforms.

  2. Print the entire list.

  3. Access and print the 5th index.

  4. Update the 3rd index to "Instagram".

  5. Delete the 8th index.

  6. Print the last index.

25. sports_list.py

  1. Create a list of 10 popular sports.

  2. Print the entire list.

  3. Access and print the 6th index.

  4. Update the 4th index to "Basketball".

  5. Delete the 9th index.

  6. Print the last index.


26. music_genre_list.py

  1. Create a list of 15 music genres.

  2. Print the entire list.

  3. Access and print the 10th index.

  4. Update the 5th index to "Jazz".

  5. Delete the 7th index.

  6. Slice the list from index 3 to 8.

  7. Print the last index.


27. building_list.py

  1. Create a list of 8 famous buildings.

  2. Print the entire list.

  3. Access and print the 5th index.

  4. Update the 2nd index to "Eiffel Tower".

  5. Delete the 6th index.

  6. Print the last index.


28. actor_list.py

  1. Create a list of 10 famous actors.

  2. Print the entire list.

  3. Access and print the 7th index.

  4. Update the 3rd index to "Leonardo DiCaprio".

  5. Delete the 8th index.

  6. Print the last index.


29. school_subject_list.py

  1. Create a list of 12 school subjects.

  2. Print the entire list.

  3. Access and print the 6th index.

  4. Update the 8th index to "Mathematics".

  5. Delete the 4th index.

  6. Slice the list from index 2 to 5.

  7. Print the last index.


30. tool_list.py

  1. Create a list of 10 tools used in carpentry.

  2. Print the entire list.

  3. Access and print the 4th index.

  4. Update the 7th index to "Hammer".

  5. Delete the 5th index.

  6. Print the last index.


31. technology_inventions_list.py

  1. Create a list of 15 modern technology inventions.

  2. Print the entire list.

  3. Access and print the 11th index.

  4. Update the 8th index to "Smartphone".

  5. Delete the 14th index.

  6. Slice the list from index 5 to 10.

  7. Print the last index.


32. animal_habitats_list.py

  1. Create a list of 8 animal habitats.

  2. Print the entire list.

  3. Access and print the 5th index.

  4. Update the 3rd index to "Savannah".

  5. Delete the 6th index.

  6. Print the last index.


33. job_titles_list.py

  1. Create a list of 10 job titles.

  2. Print the entire list.

  3. Access and print the 6th index.

  4. Update the 5th index to "Software Engineer".

  5. Delete the 9th index.

  6. Print the last index.


34. ocean_list.py

  1. Create a list of 5 oceans.

  2. Print the entire list.

  3. Access and print the 3rd index.

  4. Update the 2nd index to "Pacific Ocean".

  5. Delete the 4th index.

  6. Print the last index.


35. bird_species_list.py

  1. Create a list of 12 bird species.

  2. Print the entire list.

  3. Access and print the 9th index.

  4. Update the 6th index to "Eagle".

  5. Delete the 8th index.

  6. Slice the list from index 3 to 7.

  7. Print the last index.


36. currency_list.py

  1. Create a list of 10 world currencies.

  2. Print the entire list.

  3. Access and print the 4th index.

  4. Update the 7th index to "Euro".

  5. Delete the 9th index.

  6. Print the last index.


37. recipe_list.py

  1. Create a list of 15 recipes.

  2. Print the entire list.

  3. Access and print the 12th index.

  4. Update the 9th index to "Lasagna".

  5. Delete the 11th index.

  6. Slice the list from index 5 to 10.

  7. Print the last index.


38. drink_list.py

  1. Create a list of 8 popular drinks.

  2. Print the entire list.

  3. Access and print the 4th index.

  4. Update the 3rd index to "Coffee".

  5. Delete the 7th index.

  6. Print the last index.


39. university_list.py

  1. Create a list of 10 universities.

  2. Print the entire list.

  3. Access and print the 6th index.

  4. Update the 4th index to "Harvard University".

  5. Delete the 9th index.

  6. Print the last index.


40. festival_celebration_list.py

  1. Create a list of 10 festival celebrations.

  2. Print the entire list.

  3. Access and print the 5th index.

  4. Update the 3rd index to "Thanksgiving".

  5. Delete the 7th index.

  6. Print the last index.


41. continent_country_list.py

  1. Create a list of 15 countries and the continents they belong to.

  2. Print the entire list.

  3. Access and print the 9th index.

  4. Update the 10th index to "Australia".

  5. Delete the 12th index.

  6. Slice the list from index 4 to 8.

  7. Print the last index.


42. dinosaur_list.py

  1. Create a list of 8 dinosaur names.

  2. Print the entire list.

  3. Access and print the 4th index.

  4. Update the 6th index to "Tyrannosaurus Rex".

  5. Delete the 7th index.

  6. Print the last index.


43. natural_landmark_list.py

  1. Create a list of 10 natural landmarks.

  2. Print the entire list.

  3. Access and print the 8th index.

  4. Update the 5th index to "Grand Canyon".

  5. Delete the 9th index.

  6. Print the last index.


44. land_animal_speed_list.py

  1. Create a list of 12 land animals and their speeds.

  2. Print the entire list.

  3. Access and print the 7th index.

  4. Update the 9th index to "Cheetah - 120 km/h".

  5. Delete the 10th index.

  6. Slice the list from index 3 to 7.

  7. Print the last index.


45. river_list.py

  1. Create a list of 10 famous rivers.

  2. Print the entire list.

  3. Access and print the 6th index.

  4. Update the 8th index to "Nile River".

  5. Delete the 9th index.

  6. Print the last index.


46. volcano_list.py

  1. Create a list of 7 famous volcanoes.

  2. Print the entire list.

  3. Access and print the 4th index.

  4. Update the 3rd index to "Mount Vesuvius".

  5. Delete the 5th index.

  6. Print the last index.


47. waterfall_list.py

  1. Create a list of 10 famous waterfalls.

  2. Print the entire list.

  3. Access and print the 8th index.

  4. Update the 5th index to "Niagara Falls".

  5. Delete the 9th index.

  6. Print the last index.


48. famous_bridge_list.py

  1. Create a list of 8 famous bridges.

  2. Print the entire list.

  3. Access and print the 3rd index.

  4. Update the 6th index to "Golden Gate Bridge".

  5. Delete the 7th index.

  6. Print the last index.


49. world_wonders_list.py

  1. Create a list of 7 wonders of the world.

  2. Print the entire list.

  3. Access and print the 4th index.

  4. Update the 2nd index to "Great Wall of China".

  5. Delete the 5th index.

  6. Print the last index.


50. space_missions_list.py

  1. Create a list of 10 space missions.

  2. Print the entire list.

  3. Access and print the 7th index.

  4. Update the 4th index to "Apollo 11".

  5. Delete the 6th index.

  6. Print the last index.