Hi guys,
i'm pretty much new to python, this might be simple for some of u. But i appreciate if help is given. Here's my sample code:
import random
animal = ['duck', 'chicken', 'horse']
drinks = ['coke', 'tea', 'coffee']
test = animal + drinks
print(test)
word = random.choice(test)
print(word)
print()
if i would like to check which list does 'word' belongs to and print out the list name, how am i able to do it?