10. Data Types I & II: Numbers And Strings - No apostrophes in strings


Exercise 10 link:

Below this line, in what way does your code behave incorrectly? Include ALL error messages.
I get the error message “Oops, try again. Is your string at least three words long?” when submitting my code. It works when I remove the apostrophe. Is this just a codecademy IDE quirk?

My code

"I'm a Texan.".length


SCT quirk, probably. The author may not have considered contractions as valid word patterns.

"I am Texan".length


Must be - I finished the rest of the module, and it wasn’t an issue in any other lesson. Thanks!


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