TCS CodeVita Interview Question
- 0of 0 votes
AnswersA Gaming institute want to assign grade / score for each student based on the game results in Finals. So develop an application using Python which will automates to display the list of students, who falls into the below categories in Finals and which will helps the management to provide the scores accordingly? Categories: -Who is a loser at least in one game? -Who is a looser in all the games? Note: i. Consider that, same Associate might be the looser in more than one game ii. There are three games conducted: Chess, Caroms, Long jump ii. Develop a program in such a way that , it works on only on Finalists in each game Hint: i. Use the data structures: List / Dictionary along with the set data structure. ii. Maintain a separate list / dictionary for each game finalists and store couple of students in the list and use these lists for finding out the students, who falls into the above category mentioned in the problem statement For Ex: chessFinalList=['Hanu','Raja','RAMA'] caromsFinalList=['RAJA', 'RAMA','RAMANA'] longJumpFinalList=['RAJA','RAMA','RAVI']
- D PRAVEEN KUMAR January 18, 2018 in India| Report Duplicate | Flag | PURGE
TCS CodeVita Python
Interview Type: Written Test