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


#1

Exercise 10 link:
https://www.codecademy.com/courses/getting-started-v2/1/5?curriculum_id=506324b3a7dffd00020bf661#

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


#2

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

"I am Texan".length

#3

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


#4

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