A set and a string

Report a typo

Write down the command that should be put instead of ... to get a set of symbols that the set a and the string b both contain.

a = set("my code is brOKen")
b = "i'm not OK with that"
c = ...

Do NOT convert b to a set in your solution, it should remain a string.

Tip: What is the difference between set methods and operators? Use the one that works with iterable objects such as strings.

Enter a short text
___

Create a free account to access the full topic