zufällige PY importieren
import random
words = ['tree','sun','ball','moon','earth','grass','world']
word = random.choice(words)
print(word)
ayaan
import random
words = ['tree','sun','ball','moon','earth','grass','world']
word = random.choice(words)
print(word)
# To import the random module in python, do the following
import random # This will import
# testing
print(random.randint(0, 3)) # This will print a random number from 0 to 3
# Hope this helps!!
import random #imports random module which is built-in
random_fruits = ['apple', 'mango', 'banana'] #make a list of fruits and store it in the variable
print(random.choice(random_fruits)) #print fruits randomly
random.choice