I’m doing the first project in the Scientific Computing with Python certification, formatting the arithmetic. I’ve been working on it in VS Code so that I didn’t need to be online. It works perfectly, with several different inputs, although I’m sure the coding is clumsy. In Replit, however, it is failing 8 out of the 10 tests. At first I thought it was because I had trailing whitespace that the tester wasn’t expecting, but when I fixed that up it still failed.
Is there any reason code would work in one text editor/IDE, but not another?
If not, then it’s probably a formatting issue. I’ll look more carefully over the tests as well.
Yeah, I know it is frustrating, but often when learners say “it is working locally”, they mean that they aren’t looking closely enough. Computers are veeerrrry picky. They can’t think like us so we need to learn to think like them.
Read the fail messages very closely - they often have valuable clues. If you still can’t figure it out, post a link to the replit and someone will give you some clues.