challenge was to write a function that takes a string as an input and returns true if all the characters in the string are unique, and false otherwise.

Roast my attempt, but not too hard I just started.

Follow

@pope_meat

One line solution:

return len(input) == len(set(input))

ยท ยท 0 ยท 0 ยท 1
Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.