title: Trying to display initials in Python
body: <p>I'm trying to make this so that when a person types their name just the initials display capitalized and separated by a period. I can't figure out what is wrong with this code I wrote... help pls!</p>
  
  <pre><code>def main():
  
  name = input('Type your name and press ENTER. ')
  name_list = name.split()
  
  print(name_list)
  
  first = name[0][0]
  second = name[1][0]
  last = name[2][0]
  
  print(first,'.', second,'.')
  
  main()
  </code></pre>