Hey there. So this is my data stored in a file. I need help with printing a certain line with the user's input. For example, if the user only wants to see the second line, the program will only print the second line. I want help with coding that, with Python and using a file.
Name, Price, Quantity, Storage, Colour
iPhone 11, 849, 32, 64gb, yellow
iPhone SE, 969, 19, 256gb, starlight
iPhone 12, 1199, 10, 64gb, black
iPhone 12, 1199, 15, 128gb, red
iPhone 13, 1349, 8, 256gb, green
iPhone 13, 1349, 5, 512gb, midnight
MacBook Air, 1499, 25, 256gb, space grey
MacBook Air, 1849, 9, 512gb, silver
MacBook Pro, 1899, 29, 256gb, space grey
MacBook Pro, 2199, 13, 512gb, silver
iPad Air, 929, 46, 64gb, space grey
iPad Pro, 1649, 51, 512gb, silver
Samsung Galaxy S22 Ultra, 1999, 19, 256gb, phantom black
Samsung Galaxy S20 FE, 799, 33, cloud navy
Samsung Galaxy Z Fold3, 2649, 12, 512gb, black