fork download
  1. # your code goes here
  2. import re
  3.  
  4. s = input()
  5. acronym = ''.join(w[0] for w in s.split(' ') if w[0].isupper())
  6. print(acronym)
  7.  
  8. acronym = ''.join(re.findall(r'\b[A-Z]', s))
  9. print(acronym)
Success #stdin #stdout 0.03s 9440KB
stdin
Institute of Electrical and Electronics Engineers
stdout
IEEE
IEEE