Leonardo Sotelo

Generation

generate functionTue, 30 May 2023

funtion that generate random words with random length using only letters

import random import string def random_word(length): word = '' for i in range(length): word += random.choice(string.ascii_letters) return word

Javascript
Generate More

Want to kickstart your project?Use the new AI Studio to create your code