My goal is to be able to generate random tuples consisting of 3 variables. 2 be float(x,y coordinates ) and the last one a string. Each tuple should have the format of (float, float, string). I'm pretty sure the x,y is easy but i'm unsure if its possible to generate a string as the third parameter. The string should be a random choice of within a set. For example say I have a list of strings ["one", "two" , "three"]. I would want my generated tuple to consist of two random floats and one of the strings within that set. I was thinking something similar to this code below
[(randint(0, 180), randint(0, 180)) for _ in range(100)]
Once again just to clarify i am just trying to figure out if its possible to add one the strings from the set as my 3rd variable in my tuple