I am making a game with the same idea as Dance Dance Revolution or more so Guitar Hero. Push the corresponding keys on your keyboard that appear on screen. I have made the function to get the output for the keys but now I need to take the output and place it as the input of another function. I assume that this requires the syntax, 'return' just not sure how to go about doing it. This is my current code regarding.
def randArrow():
randArrow = ['left', 'right', 'down', 'up']
for direction in 'randArrow':
print(random.choice(randArrow))
return randArrow