python placing numbers between words in order

Solutions on MaxInterview for python placing numbers between words in order by the best coders in the world

showing results for - "python placing numbers between words in order"
Marlene
06 Nov 2016
1import sys
2import numpy as np
3
4array = np.array([])
5chars = list()
6char = ''
7def strPattern(mystr):
8    mystr = mystr.upper()
9    liste =list(mystr)
10    print(liste)
11    uzunluk = len(mystr)*2-1
12    for x in range(0, len(mystr)):
13        chars.append(liste[x])
14        if x+1 < len(mystr):
15            b = str(x+1)
16            chars.append(b)        
17    str1 = ""
18    print(str1.join(chars))
19strPattern('Burkay')