Posts

Showing posts from August, 2022

Power of Millets || Happy And Healthy Life

Image
Foundation Day Meeting : By   D. Anjaneyulu Reddy : Power of millets: When food is right no medicine is needed. When food is wrong no medicine works 1. Cosmetologist : due to unbalanced diet, regularly going to cosmetologist 2. Harmonal imbalance : hair loss 3. 1 gm of sugar / 1 litre of blood : It is good for health. 4. Staple food : It is eaten regularly , large part of person's diet. 5. Don't eat icecream as it increase the sugar content in blood. Embrace meaning : include , hug

Find the second lowest grade in the nested list:

Given the names and grades for each student in a class of   students, store them in a nested list and print the name(s) of any student(s) having the second lowest grade. Hacker Rank Solution:     if  __ name__  ==  '__main__' :      student_list  =  []      for  _  in   range ( int ( input ())):          name  =  input ()          score  =  float ( input ())          student_list . append ([ name , score ])      # print(student_list)          scores_list  =  sorted ( list ( set ([ student [ 1 ]   for   student   in   student_list ]))) # print(scores_list) second_lowest_grade  =  scores_list [ 1 ] student_second_lowest_grade  =  ...