Hi there I am having trouble with creating a function called 'getInformation(selectedCountry)' for a CSV file with Universitas rankings data that will show both the national rank and the name of the university that has the highest national rank within the inputted selected country/rank. I am not sure how to format the function before or after I open the CSV for reading? When a user types a rank number# the University with that rank should display but im not sure how to proceed. The expected output should look like this At international rank => 31 the University name is => SOUEL NATIONAL UNIVERSITY Def getInformation(selectedCountry) With open('TopUni.csv','r')as csv_file: csvReader=csv.reader(csv_file)
Hi there I am having trouble with creating a function called 'getInformation(selectedCountry)' for a CSV file with Universitas rankings data that will show both the national rank and the name of the university that has the highest national rank within the inputted selected country/rank. I am not sure how to format the function before or after I open the CSV for reading? When a user types a rank number# the University with that rank should display but im not sure how to proceed.
The expected output should look like this
At international rank => 31 the University name is => SOUEL NATIONAL UNIVERSITY
Def getInformation(selectedCountry)
With open('TopUni.csv','r')as csv_file:
csvReader=csv.reader(csv_file)
Step by step
Solved in 3 steps with 2 images