title: Python 3 Program to print the Initials of a name and with surname
body: <p>Program: Input a name and Print the Initials and with surname.</p>
  
  <p>Input:- Ted Vivian Mosby<br>
  Output:- T V Mosby</p>
  
  <p>Using Python 3 online compiler:-</p>
  
  <p><a href="https://repl.it/languages/python3" rel="nofollow noreferrer">https://repl.it/languages/python3</a></p>
  
  <hr>
  
  <pre><code>user = input('Please Enter your name \n')
  length = len(user)
  value=0
  
  for a in range(0,length-1):
      if a==" ":
        value=a
  
  for b in range(0,value):
      if b==0:
        print(user[0])
      elif user[b]==" ":
        print(user[b+1])
  
  for c in range(value+1,length):
      print(user[c])
  </code></pre>
  
  <hr>
  
  <p>The output I have is:-</p>
  
  <p>Please Enter your name<br>
   Ted Vivian Mosby<br>
  e<br>
  d                                       </p>
  
  <p>V<br>
  i<br>
  v<br>
  i<br>
  a<br>
  n                                                  </p>
  
  <p>M<br>
  o<br>
  s<br>
  b<br>
  y                                                            </p>