**CodeAcademy: Hotfix** Fix for this


#1

fix for this, examples are shown in previous coding examples. Compiles gets the same answer

print “%s \nprice: %s \nstock: %s \n” % (x, prices[x],stock[x])


#2

what is your question? I think i know which exercise this, but you really need 3 print statements here in order to pass the exercise


#3

Its not a question. It’s a suggestion for a hotfix. I’m sure I am not the only person which ran this one line instead of three.


#4

but the instructions explicitly state the use of 3 print statements. I wouldn’t opt for what you are doing, it doesn’t make the code very readable, i agree with the exercise that 3 print statements is better.

When programming on your own, you are free to do many things, lessons have usually certain restrictions


#5

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.