Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

turn list into string

import random
word_list = ["aardvark", "baboon", "camel"]
chosen_word = random.choice(word_list)
word_length = len(chosen_word)

#Create blanks
display = []
for _ in range(word_length):
    display += "_"
    
print(f"{' '.join(display)}")
Source by www.afternerd.com #
 
PREVIOUS NEXT
Tagged: #turn #list #string
ADD COMMENT
Topic
Name
2+2 =