Get startedGet started for free

Modifying string variables

You did so well working with LLM Camp's reviews that they've asked for your help again.

They have a variable called most_popular_course, which contains the name of their highest-ranked course. It has been provided in script.py so you can see its contents. However, there are issues with it:

  • There's a typo. It should be "Introduction" rather than "Intro".
  • They want to remove spaces and use underscores to make it easier to analyze.
  • For consistency, they want all characters to be lowercase.

They'd like your support in making these changes!

This exercise is part of the course

Introduction to Python for Developers

View Course

Hands-on interactive exercise

Have a go at this exercise by completing this sample code.

most_popular_course = "Intro to Embeddings with the OpenAI API"

# Update the first word
____ = ____.____("____", "____")

print(most_popular_course)
Edit and Run Code