Skip to content

Latest commit

 

History

History
19 lines (11 loc) · 761 Bytes

File metadata and controls

19 lines (11 loc) · 761 Bytes

Aritmetic Formatter

This project is part of Scientific Computing with Python Projects by Free Code Camp

I developed this function that receives a list of arithmetic problems and returns the problems arranged vertically and side-by-side:

print(arithmetic_arranger(["32 + 698", "3801 - 2", "45 + 43", "123 + 49"]))

Optionally receives a second parameter True for show de result:

print(arithmetic_arranger(["32 + 698", "3801 - 2", "45 + 43", "123 + 49"], True))

Output:

drawing

For your convinience i let a example in de source code. Feel free to clone and use with your arithmetic problems!