title: Coding a language translator
body: <p>im trying to code a kind of language translator from any language to a kind of gibberish language, wheres every consonant will be replaced with the same consonant plus an o and then the consonant again.</p>
  
  <pre><code>b = bob
  d = dod
  f = fof
  </code></pre>
  
  <p>so the text "Hi my name is x" 
  will become "Hohi momy nonamome isos xox"</p>
  
  <p>The problem i have is the converting part. </p>
  
  <p>any tips on how i can proceed?</p>
  
  <p>Oh and btw I am using python 3</p>
  
  <p>What i got this far.</p>
  
  <pre><code>#Welcom text
  print ("Gibberish translator!")
  
  #get stentence
  original = raw_input("Give a sentence: ")
  
  #Check so that it is a correct sentence
  if len(original) &gt; 0:
      print ("")
  else:
      print ("give a real sentence..: ")
  
  #convert
  gibberish = ""
  for i in original:
      if i == "b,c,d,f,g,h,j,k,l,m,n,p,q,r,s,t,v,w,x,z":
          i = i + "0" + i
          gibberish.append(i)
      elif i == "a,o,u,e,i,y":
          gibberish.append(i)
  
  #print out the gibberish
  print (gibberish)
  </code></pre>
  
  <p>Yeah! i think i got it to work quite well..</p>
  
  <pre><code># -*- coding: cp1252 -*-
  #Repeat
  while True :
      #Welcom text
      print ("Gibberish translator!")
  
      #get stentence
      original = raw_input("Give a sentence: ")
  
      #Check so that it is a correct sentence
      if len(original) &gt; 0:
          print ("")
      else:
          print ("Give a real sentence..: ")
  
      #convert
      gibberish = ""
      for i in original:
          if i in "bcdfghjklmnpqrstvwxzBCDFGHJKLMNPQRSTVWXZ":
              i = i + "o" + i
              gibberish = gibberish + i
          elif i in "aoueiyåäö AOUEIYÅÄÖ":
              gibberish = gibberish + i
  
      #print out the gibberish
      print (gibberish)
      print ("\n")
  </code></pre>
  
  <p>Im open for suggestions to make it "better" </p>