Last answered:

16 Mar 2022

Posted on:

15 Mar 2022

2

Resolved: Correct solution to the second quiz question

What is the error that is supposed to appear when executing the statements in the second question of the quiz? Is it not possible to assign integers as vector names? Doesn't the coercion rule apply to transform other types of data into characters?

1 answers ( 1 marked as helpful)
Instructor
Posted on:

16 Mar 2022

2

Hi German,
thanks for reaching out! You're asking a valid question and you're absolutely right, if we had another type of data for the Sandy Cheeks name, say 5 or 2.0, the coercion rule will transform them into a string of "5" or "2.0". However, since plain text is not allowed in code, unless it is a command or a comment, this throws an error.
Hope this helps!

Best,
365 Eli

Submit an answer