Answers for "print a random word from list python"

1

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 "print a random word from list python"

Python Answers by Framework

Browse Popular Code Answers by Language