Python. Generating a random + or - sign using the random command
Question: What is the easiest way to generate a random `+`,`-`,`*`, or `/` sign using
the import random function while assigning this to a letter.

E.G.

    
    
    g = answeryougive('+','-')
    

Thanks in advance :)


Answer: You want
[`random.choice`](http://docs.python.org/2/library/random.html#random.choice)

    
    
    random.choice(['+', '-'])
    

Or more concisely:

    
    
    random.choice('+-')
    

