fork download
  1. string ="some random text"
  2. new_string = string.lower().split()
  3. chars = {'a','b','c'}
  4.  
  5. for word in new_string:
  6. if chars & set(word):
  7. print(word)
  8. break
Success #stdin #stdout 0.02s 9108KB
stdin
Standard input is empty
stdout
random