0

Please someone to run this code and help with solution to the error ( "<=" not supported in the instances of "list" and "int" )

kate=60 simi=75 abu=90 isa=85 daud=45 ana=30 students=["kate","isa","daud","simi","ana","abu"] score=[kate,isa,daud,simi,ana,abu] grade=["distinction","credit","pass","fail"] print(type(students)) student_name=(input("state your name:")) print("My name is:",student_name) info_detail=int(input("student name contain this information:")) print("your score is:",score[info_detail]) del info_detail if score <=45: print(grade[2])

7th Jun 2020, 1:25 PM
El uthmany
El uthmany - avatar
2 odpowiedzi
0
You have to iterate through the list before using the if statement to check.
7th Jun 2020, 2:03 PM
Justus
Justus - avatar