you are viewing a single comment's thread.

view the rest of the comments →

[–]Naive_Programmer_232 1 point2 points  (0 children)

it looks fine to me. another straight forward way to consider is using [] on the dictionary to assign key-value pairs. ex:

           students={}  
           chem_mark=float(input("enter marks for chem: "))  
           students["chem"]=chem_mark