Here i have list with product name and product price but i want to take only the products price from the list and calculate the total price of all products. How can i do it ?
For example i have a list:
all_products = ['food',1000,'pasta',500,'beer',400]
how can i do : 1000+500+400 = 1900