Cetak kata acak dari daftar python

import random

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

word = random.choice(words)
print(word)
ayaan