Last answered:

11 Apr 2020

Posted on:

11 Apr 2020

0

Python indexing quiz

In the "Introduction to Programming with Python" course, the " Indexing Elements" lecture, shows the result as 'a', with single quotes. The quiz below says that the answer 'y', with the single quotes, is incorrect, but y without the single quotes is correct. I think that the quiz is wrong? What am I missing here.
1 answers ( 0 marked as helpful)
Instructor
Posted on:

11 Apr 2020

0
Hi Trevor! Thanks for reaching out! Trying to preserve your experience of taking this quiz question as exciting as possible, perhaps I wouldn't like to share more than a hint.  Using the print() function often changes the way in which a certain output is displayed. So it does when printing out a character from a string or sometimes an element from a list, for instance. Hope this helps but please feel free to get back to us should you need further assistance. Thank you. Best,
Martin

Submit an answer