From the course: Programming Foundations: Data Structures (2023)

Unlock the full course today

Join today to access over 24,800 courses taught by industry experts.

Challenge: Unique characters

Challenge: Unique characters

- [Instructor] Let's practice using sets in Python. With this challenge, you'll create a program that determines whether a piece of text has unique characters. Let's take a look at the starter code in code spaces. Here we have a function called "has_unique_characters." It should return true or false depending on whether the data passed in has unique characters or not. Your job is to implement this function. Since this is a question of membership, I encourage you to use a set in your implementation. Good luck and happy coding.

Contents