Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

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()
Comment

PREVIOUS NEXT
Code Example
Python :: python how to get the angle between two points by only their x,y 
Python :: pandas df by row index 
Python :: __lt__ 
Python :: datetime.timedelta format to string python 
Python :: listas en python 
Python :: python get first occurrence in list 
Python :: excel write column 
Python :: python tkinter button dynamic button command 
Python :: converting datatypes 
Python :: django form example 
Python :: how to move the last column to the first column in pandas 
Python :: python coding language 
Python :: python merge strings 
Python :: identity matrix python 
Python :: python set attribute by string name 
Python :: append a dataframe to an empty dataframe 
Python :: run python script on remote server 
Python :: has no attribute python 
Python :: python keyboard 
Python :: Customize color stacked bar chart matplotlib 
Python :: largest number python 
Python :: get particular columns from dataframe 
Python :: dataframe look at every second column 
Python :: enumerate in django templte 
Python :: python in stack 
Python :: code for test and train split 
Python :: move object towards coordinate slowly pygame 
Python :: __mul__ 
Python :: pass args and kwargs to funcitons 
Python :: python does string contain space 
ADD CONTENT
Topic
Content
Source link
Name
9+9 =