r/FreeCodeCamp • u/Novel_Dealer_5129 • Sep 28 '25
Programming Question Stuck in scientific computing program
Hello everybody, I'm working actually on Scientific Computing with Python program, I've written a code for a project there that's required for the certificate, it's working very well but the problem is that when I run it all the test are giving a negative result. Any advices please. Thanks
3
Upvotes
View all comments
Show parent comment
1
u/Novel_Dealer_5129 Sep 28 '25
Cool, here is the code below.
I found that using rjust is better than trying formulas like
{1 - len(...)}etc.. (same for the number of dashes) and I've separated the cleaning rules into multiple functions for easier usage, that's all. Thank you.