0
Print(set("penguin"))
Output is {'e','u','g','e','i','n'} So,Can anyone illustrate what does this code during execution?
1 Answer
+ 2
You missed the letter p.
set() function converts the string to a set of unique characters. Each letter is included only once. Sets are not ordered, so printing them happens in kind of random order.