title: function that takes variable length as argument and returns tuple
body: <p>I have written code as below:</p>
  
  <pre><code>def convTup(*args):
      t = set([])
      for i in args:
          t.add(i)
      return tuple(t)
  
  print convTup('a','b','c','d')
  print convTup(1,2,3,4,5,6)
  print convTup('a','b')
  </code></pre>
  
  <p>Expected output :</p>
  
  <pre><code>('a', 'b', 'c', 'd')
  (1, 2, 3, 4, 5, 6)
  ('a', 'b')
  </code></pre>
  
  <p>But I got output as below:</p>
  
  <pre><code>('a', 'c', 'b', 'd')
  (1, 2, 3, 4, 5, 6)
  ('a', 'b')
  </code></pre>
  
  <p>Why has the order of the elements changed only for <code>('a','b','c','d')</code>? How can I print the tuple in the same order as the given input?</p>