I'm trying to generate random sentences but it does not work, I already imported random and this is what I have:
if "razor blade" in inventory:
sentences = ("What do you take yourself for?","Are you insane?", "You are not doing that.", "You have to be joking.", "This isn't going to work.")
num= random.randrange (0,5)
print (sentences[num])
elif "razor blade" not in inventory:
print ("you don't own this item in your inventory.")
else:instead ofelifin this case, your current code should work thoughrandomto the same seed elsewhere in your program.