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
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()
Comments
Leave a comment