salary = ()salary.isdigit(): salary = (salary): ()(.center(,))flag = shop_car = []product_list = [ (,),(,),(,),(,),(,),(,),(,) ,(,),(,)]product_list_len = (product_list) - flag: (.center(,)) product_item (product_list): p_index = product_item[] p_name = product_item[][] p_price = product_item[][] (p_index,,p_name,p_price) user_choice = () user_choice.isdigit(): user_choice = (user_choice) user_choice < (product_list): p_item = product_list[user_choice] p_item[] < salary: shop_car.append(p_item) salary -= p_item[] (% (p_item,salary)) : (% salary) : (% product_list_len) : user_choice == user_choice == : (.center(,)) item1 shop_car: (item1) (.center(,)) (% salary) flag =