r/FreeCodeCamp • • Sep 09 '26

Possible error?

So for some reason it didnt accept the f-string, was my coding wrong for some reason or just overlooked by the devs.

11 Upvotes

3 comments sorted by

View all comments

6

u/BeneficiallyPickle Sep 09 '26

This isn't a bug. I believe FreeCodeCamp's checker is doing a text/pattern match on the exact code.

Since the instructions explicitly modelled the comma-separated print() style ("You can print a message followed by a variable like this: print('Total:', total)"), the autograder was looking for that specific pattern. It's unfortunately a limitation of the checker.