QuestionRead the transaction data: retail.txt. Each row in the file is one… Read the transaction data: retail.txt. Each row in the file is one purchase transaction from a customer.The first column is transaction ID, column 2-3 are the product IDs purchased in this transaction. Columnsare separated by spaces. Co-purchased products are defined as a pair of products purchased in the sametransaction. For example, a row is: “3 26 28”, Then 26 and 28 is a pair of co-purchased product IDs. It isworth mentioning that if the value in third column is zero, it means this customer only purchased oneproduct (the one in second column).Task: Use Python programming to find top 10 most popular products and top 10 most commonly copurchased product pairs, then save the result into a new file “output.txt”.Hint: To find co-purchased product in each transaction, you might use a nested loop.retail.txt1 5 02 29 03 26 284 28 85 28 96 24 07 22 08 20 09 16 010 1 1411 4 1312 9 2813 7 1714 17 2215 26 416 5 017 1 018 19 2719 10 1520 22 021 23 022 23 1023 15 324 21 825 6 926 8 027 22 028 16 029 14 030 7 131 21 1532 4 2933 19 034 1 035 16 836 26 037 10 038 30 1839 22 1940 29 1641 21 042 4 043 17 044 12 045 16 1546 8 047 20 048 30 2849 29 050 30 051 8 352 25 053 11 0Computer ScienceEngineering & TechnologyPython Programming

Order your essay today and save 20% with the discount code ESSAYHELP