Answers for "tuple push"

0

tuple push

a = ('Product', '500.00', '1200.00')
a = list(a)
a.insert(3, 'foobar')
a = tuple(a)
print a

>> ('Product', '500.00', '1200.00', 'foobar')
Posted by: Guest on March-24-2020

Python Answers by Framework

Browse Popular Code Answers by Language