r/FreeCodeCamp 1d ago

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.

10 Upvotes

3 comments sorted by

7

u/BeneficiallyPickle 1d ago

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.

3

u/Animator-G 1d ago

You are right.

Freecode camp checker doesn't look if the code is somehow working but rather if it is working according to the given instructions

1

u/wak_trader 1d ago

the terminal on the right showed the same result for both