I have two lists:
wordlists1 = ["hot","summer", "hard", "dry", "heavy", "light", "weak", "male",
"sad", "win", "small","ignore", "buy", "succeed", "reject", "prevent", "exclude"]
wordlists2 = ["cold", "winter", "soft", "wet", "light", "darkness", "strong", "female", "happy", "lose", "big",
"pay attention", "sell", "fail", "accept", "allow", "include"]
I use random.choice to pick a word from each list. Once I have the words, I need to print them as a question. For e.g., if hot and weak are selected it should print: "Hot is to cold as weak is to___?"
I really need help on this, and detailed steps would be appreciated.
My code:
import random
wordlists1 =["hot","summer", "hard", "dry", "heavy", "light", "weak", "male", "sad", "win", "small","ignore", "buy", "succeed", "reject", "prevent", "exclude"]
wordlists2 =["cold", "winter", "soft", "wet", "light", "darkness", "strong", "female", "happy", "lose", "big", "pay attention", "sell", "fail", "accept", "allow", "include"]
randomword1=random.choice(wordlists1)
randomword2=random.choice(wordlists2)