Sec 8 unit 13 Quiz

Course Name: Python for Trading: Basic, Section No: 8, Unit No: 13, Unit type: Quiz

Here only option 1 can be applied on the next IDE quiz, where in this question answer mentioned as 1,3 and 4. But, while applying the format of 3rd and 4th code in the upcoming IDE section, it is throwing error. Please check. 

Hi Jeyaraman,



I checked the interactive exercise and as mentioned in the quiz, option 1 and 4 are working. Single or double quotes while referencing a column gives same answer.

The 3 option is interesting here. The column name in question "Close Price" consists of two words. 

The python compiler interprets the space between "Close" and "Price" as end of the code in the line and since there is no column with the name "Close", it gives an error. 



Thus, while the quiz question is right, the third option will work for column names which are one word only.



Hope this helps.