Answers for "python placing numbers between words in order"

4

python placing numbers between words in order

import sys
import numpy as np

array = np.array([])
chars = list()
char = ''
def strPattern(mystr):
    mystr = mystr.upper()
    liste =list(mystr)
    print(liste)
    uzunluk = len(mystr)*2-1
    for x in range(0, len(mystr)):
        chars.append(liste[x])
        if x+1 < len(mystr):
            b = str(x+1)
            chars.append(b)        
    str1 = ""
    print(str1.join(chars))
strPattern('Burkay')
Posted by: Guest on April-25-2021

Code answers related to "python placing numbers between words in order"

Python Answers by Framework

Browse Popular Code Answers by Language