Tell us what’s happening:
I have no idea what to do here in Scientific Computing with Python. I tried to understand it, but it just won’t work. can anyone help?
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36
Challenge: Scientific Computing with Python Projects - Arithmetic Formatter
I have listened to all of the videos and all the lessons, but I got stuck at the beginning where I had to create the arithmetic arrangement but it won’t work in the replit code, it keeps showing errors
Right… If your code was perfect, then you wouldn’t be asking for help. But you are asking for help, and we need to see what code you tried so we can help you fix it. We can’t write the code for you.
Honestly depending on how strong you are you should work through the exercises at the py4e.com website, it will help you build your skills. + the videos came from the same guy, Dr. Chuck, who runs the website.
I first did all the projects offline, on pycharm. What really helped me was copying some of the test strings from replit and saving them offline, then you can more quickly compare line by line what you are missing( usually spaces and such.
I am just taking a guess here, but I assume you have the same problem I had when i first started programming and faced this task.
The challenge here is formatting the output and align the individual problems next to each other.
From your first intuition, you migth have tried to do it as you were writing things down on paper, problem after problem, from top to bottom and ultimatelly tried printing them next to each other.
Things dont work that way, at least I haven’t found one, so I started to solve the task literally line by line and joining the lines all together in the end.
This perspective did the trick for me, maybe it’ll help you, too.