I have been experiencing frustration with the precision and specific examples required to get credit in the Data Science Foundations Exam.
I have just submitted question 2 (asking to order by Grade) but for whatever reason despite pulling that exact data, i was not given credit. I am now 2 “check answers” down on question 4:
with my answer as follow:
for x,y in all_items:
if y%2 == 1:
discounted_items.append(x)
For testing purposes: print discounted list
print(discounted_items)
the check is telling me I haven’t run the loop? What am I missing?? This is incredibly frustrating I’ve done this exam 3 times now, and have been able to pull the exact data for every entry- but routinely get credit for only 4/6, marking as an incomplete grade.
I can’t view the exam, but I am just wondering whether the instructions give any examples.
Is the result supposed to be a list of strings or is it supposed to be a list of lists i.e.
Is discounted_items supposed to be:
['Taffy', 'Cup', 'Bowl']
or is it supposed to be:
[['Taffy', 1], ['Cup', 5], ['Bowl', 11]]
? Do the instructions include an example of sample output?
Hi,
Sorry for my bad english, I’m french.
I’ve the same frustation.
I think that before run the odd list, we have to run a “simple loop” .
Tomorow I’ll test this :
Hi,
Did you find any solution ? I’m stuck too it’s very frustrating I don’t understand why they keep telling me that I haven’t run the loop … I’m missing something idk what
Well I got it to work. You have to use a for i in range(len(some_list)): loop rather than a for x, y in some_list: loop. Then access the elements of the lists by their index. WAY to picky in my opinion.