I'm having trouble figuring out how to randomly generate strings.
I currently work with import random before creating a set of lists before choiceint = random.randint(1,X). Beyond that I am stuck.
What I want the code to do is select strings from two lists and then create a new string.
For example list1 = ["bannana flavour"] list2 = ["milk"]
and then it would get "bannana flavour" and "milk" and create "bannana flavoured milk".
This would pick from a larger pool to generate the string but I'm clueless as to how generate semi-random strings.
I don't know if this is achievable but the idea is to generate an item from the options in a list and then place it in another list.
If this isn't possible, or isn't possible without a large amount of non user friendly code, I would like to know as, while it is unfavourable, I do have the alternative of using a random.randint(1,X) and then list out all the possible combinations random.randint = 1: