I'm creating a function (python 2.7) to make a dictionary out of user input with test subject as the key and their test scores as the values, the subjects that the scores will correspond to are provided in a seperate list called subjects so i will require a for loop to cycle through them asking the user for the scores in turn. The function will return the student ID and the scores. I think it's something like this:
subjects = 'english', 'maths', 'science'
dict = {}
for a in subjects:
testscore = raw_input("please enter your test score: ")
dict[a] = testscore
Really struggling, any help appreciated! thanks