The 365 Data Science team is proud to invite you to our own community forum. A very well built system to support your queries, questions and give the chance to show your knowledge and help others in their path of becoming Data Science specialists.
Ask
Anybody can ask a question
Answer
Anybody can answer
Vote
The best answers are voted up and moderated by our team

Python indexing quiz

Python indexing quiz

0
Votes
1
Answer

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 Answer

365 Team
0
Votes

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