please help me to create a list of tuple like this with one button. when the button click you will insert the first item and so on
def button():
records_to_insert = [(4, 'HP Pavilion Power', 1999, '2019-01-11'), first item
(5, 'MSI WS75 9TL-496', 5799, '2019-02-27'), second item
(6, 'Microsoft Surface', 2330, '2019-07-23')] third item
i want to create a list of tuple like this .......using a function and append... i using a entry box and get() the item to entry box place like this....
What I have tried:
i try using a list and append but the input is not combining.....if i click the button the first item appear like that so on
[(4, 'HP Pavilion Power', 1999, '2019-01-11')]
[(5, 'MSI WS75 9TL-496', 5799, '2019-02-27')]
[(6, 'Microsoft Surface', 2330, '2019-07-23')]
i want the code appear like this
records_to_insert = [(4, 'HP Pavilion Power', 1999, '2019-01-11'), first item
(5, 'MSI WS75 9TL-496', 5799, '2019-02-27'), second item
(6, 'Microsoft Surface', 2330, '2019-07-23')] third item