title: How do I print the first letter of each string in a list in one line?
body: <p>For one of my tasks, the user inputs multiple strings until they enter a blank line and then it prints it out in one line, this is how I did it. </p>
  
  <pre><code>words = []
  word = input("Word: ")
  
  while word:
    words.append(word)
    word = input("Word: ")
  
  words = (' ').join(words)
  print(words)
  </code></pre>
  
  <p>However, there's another part where it takes the first letter of each string in the list and prints it out in capital letters in one line. I cannot figure out how to print this on one line. This is my code:</p>
  
  <pre><code>words_split = words.split() 
  for word in words_split:
    i = word[0]
    print(i.upper())
  </code></pre>
  
  <p>e.g. If I entered <code>ace, bravo, charlie</code>: it would print out</p>
  
  <p>A</p>
  
  <p>C</p>
  
  <p>E</p>
  
  <p>instead of </p>
  
  <p>ACE</p>
  
  <p>Can someone assist me thank you (:</p>