1. Engineering
  2. Computer Science
  3. write a python program that reads a text file called...

Question: write a python program that reads a text file called...

Question details

Write a Python program that reads a text file called “perfumes.txt”. A sample of the file is provided below, you may add more details to the file. Each row has a perfume name and respective price. Your program must read the data from the file and identify the most expensive perfume in the list. Sample file is given below.

perfumes.txt
Gucci 415
Prada 435
Cartier 310
Hermes 553
Dior 386
Burberry 369

as a function

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution