double char

Solutions on MaxInterview for double char by the best coders in the world

showing results for - "double char"
Libbie
13 Oct 2018
1#my own code
2
3def doubleChar(str):
4  lisp = list(str)
5  out = []
6  string = ''
7  for i in range(len(lisp)):
8    out.append(lisp[i])
9    out.append(lisp[i])
10  for i in range(len(out)):
11    string += out[i]
12  return string