I'm trying to use the lambda function.
import random
from string import ascii_letters
choice = lambda x: x[int(random()* len(x))]
print(choice("azerty"))
But I get an error :
TypeError: 'module' object is not callable
I'm confused. Can you help me ? Thanks.