title: How to print output of for loop on same line
body: <p>Here is my code:</p>
  
  <pre><code>def missing_ch(number, string):
        for i in range(len(string)):
          if i==number:
             continue
          else:   
             print(string[i], end=' ')
        return
  string='hello'
  num=int(input("enter the position of char"))
  missing_ch(num, string)
  </code></pre>
  
  <p>How to get output characters printed in same line?</p>