Answers for "expand alphabets in python"

0

expand alphabets in python

t='13e14r'
num=[]
for i in range(len(t)):
  if t[i].isalpha()!=True:
    num.append(t[i])
  else:
    num=[str(x) for x in num]
    nu = "". join(num)
    n = int(nu)
    for ii in range(n):
      print(t[i],end='')
    num=list()
Posted by: Guest on July-07-2021

Python Answers by Framework

Browse Popular Code Answers by Language