Answer to Question #180534 in Python for Madhu

Question #180534

For the given data frame DF shown above we want to get all the records with toef1 score greater than 105 but smaller than 115 which of the following expressions is incorrect to perform the same


1
Expert's answer
2021-04-12T04:50:40-0400
def main():
    # data frame DF list 
    DF =[46,125,105,10,106,110,125,108,109,9,130,115] 
    #toef1 score greater than 105 but smaller than 115
    print("Scores greater than 105 but smaller than 115:")
    for score in DF:
        if score>105 and score<115:
            print(str(score))
           


main()

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS