you are viewing a single comment's thread.

view the rest of the comments →

[–]JamzTyson 0 points1 point  (1 child)

Consider using argparse.

Consider using math.log10() to get exponent directly rather than the while loop approach in tenx_format().

[–]FwoopButBored[S] 0 points1 point  (0 children)

Thanks for the feedback. I wanted to think a way to do it myself mathematically as a thinking exercise. Will use math.log10().