I was wondering how I would use the "adj" variable from def getInput and connect it to adjectives(), I am trying to make it so I can get input from the user and then have the random.choice activate depending on how many adjectives the user inputs. As a student for this project, I can only use user defined functions.
import random
def getInput():
insult = input("Enter number of insults you want generated: ")
target = input("Enter the targets name: ")
adj = input("Enter number of adjectives you want in your insults: ")
def adjective():
adjectives = ("aggressive", "cruel", "cynical", "deceitful", "foolish", "gullible", "harsh", "impatient", "impulsive", "moody", "narrow-minded", "obsessive", "ruthless", "selfish", "touchy")
for adj in adjectives:
print(random.choice(adjectives))
break