How to append 1 value to every tuple within a list?
tuple_list = [('a','b'),('c','d'),('e','f')]
value = 111
Desired_List = [(111,'a','b'),(111,'c','d'),(111,'e','f')]
I've tried the following:
for x in tuple_list:
x.append(111)
for x in tuple_list:
x + '111'
I prefer sublists over tuples, so is there anyway to change the tuples to sublists as well?
Notes: It actually doesn't matter whether the 111 is in the first index or the last index of the tuple.