Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to for loop for amount of characters in string python

s = "string"
random_list = list(s) #random_list = ['s','t','r','i','n','g']
list_length = len(random_list) #list_length = amount of characters (6)
for number in range(0,list_length):
	print("something")
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #loop #amount #characters #string #python
ADD COMMENT
Topic
Name
4+4 =