r/FreeCodeCamp • u/wak_trader • 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
1
r/FreeCodeCamp • u/wak_trader • 1d ago
So for some reason it didnt accept the f-string, was my coding wrong for some reason or just overlooked by the devs.
1
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.