I have the following tuple of tuples:
my_choices=(
(\'1\',\'first choice\'),
(\'2\',\'second choice\'),
(\'3\',\'third choice\')
)
What you have is a tuple of tuples, not a list of tuples. Tuples are read only. Start with a list instead.
>>> my_choices=[
... ('1','first choice'),
... ('2','second choice'),
... ('3','third choice')
... ]
>>> my_choices.insert(0,(0,"another choice"))
>>> my_choices
[(0, 'another choice'), ('1', 'first choice'), ('2', 'second choice'), ('3', 'third choice')]
list.insert(ind,obj) inserts obj at the provided index within a list... allowing you to shove any arbitrary object in any position within the list.