Does Codecademy check for punctuation?


#1

Question

Does Codecademy check for punctuation?

Answer

It sure does! If you ever feel you’ve entered what it asks for in the instructions, but it’s marking it wrong, take a second look and be sure you have the same capitalization, spacing, and punctuation if it’s a string. Once you get to the free form projects, though, you’ll have much more room for creativity! Take a look at the code below for a passing and failing example:

# The instructions say “Create a new variable brian and assign it the string "Hello life!".”

# Passing:
brian = “Hello life!”

# Failing
Brian = “Hello life!”
brian = “hello life”
brian = “Hello life.”

FAQ: Learn Python – Strings & Console Output – Strings
#2

The only check would be for exact string patterns. When given a string in the instructions, be sure to use that exact string. Be wary of straying from the instructions and taking liberties or embellishing for effect. Experiments will most always come back as not accepted.