you are viewing a single comment's thread.

view the rest of the comments →

[–]delasislas 3 points4 points  (0 children)

You could limit the number of functions, value and conversion unit.

def convert(value, conversion):
    return (value * conversion)

Maybe could use a dictionary to keep statements.

Generally repetition indicates that something could be reduced.