title: Can't get an acronym generating function to work for the last input word on python
body: <p>I'm trying to write a function that takes a string of words as an input and prints the first letter of each word, upper-cased, as an acronym. the closest I have got is writing this function that works only for the first two words - how can I get it to work for every word in the list, no matter how many words separated by a space the input string contains?</p>
  <p>Here's the code I am running:</p>
  <pre><code>def fxn(stng):
      out=stng[0]
      for i in range(1, len(stng)):
          if stng[i-1]==' ':
              out+=stng[i]
              out=out.upper()
              return out
  input1=input()
  print(fxn(input1))
  </code></pre>
  <p>This is an example of an input and the output I'm currently getting. I would expect it to be <code>SOS</code>.</p>
  <pre><code>save our souls
  SO
  </code></pre>