For the Arithmetic Formatter are we allowed to use modules?
I see no reason why not . Provided the tests can evaluate your code’s output, and your code is written using Python, you are welcome to get to the endpoint however you see fit.
Thank you for the response, can you nudge me in the right direction on how to print the correct # of dashes for a problem? In the desired output sometimes it is four, five, or six dashes depending on the width of the second number with the operand.
How do I . . . count or store the value of the second line? Max()?
Well, there are many ways to achieve this:
ifstatements padding based on length
forloops to count length, and insert padding as needed
- General string methods are useful here:
Python for Everybody - Conditional Execution | Learn | freeCodeCamp.org
Python for Everybody - Strings in Python | Learn | freeCodeCamp.org
Python for Everybody - Intermediate Strings | Learn | freeCodeCamp.org
Hope this helps