I ended up with a solution not requiring a module but that module is nice to know exists, thanks.
Basically used .split('.')[0] and [1] to compare the left and right sides then ran the if statement with int(l_num) > int(old_l_num)
and elif right num etc.
Thanks for the prodding in right direction.
Basically used .split('.')[0] and [1] to compare the left and right sides then ran the if statement with int(l_num) > int(old_l_num)
and elif right num etc.
Thanks for the prodding in right direction.