Answers for "how to pick a random word from a list in python"

2

how to pick a random english word from a list

go to https://www.randomlists.com/data/words.json
It has 5000 english words
Posted by: Guest on April-04-2021
4

print a random word from list python

import random

words = ['tree','sun','ball','moon','earth','grass','world'] 

word = random.choice(words)
print(word)
Posted by: Guest on October-19-2021

Code answers related to "how to pick a random word from a list in python"

Browse Popular Code Answers by Language