UPDATE: I should have specified this sooner, but not all of the names are simply floats. For example, some of them are \"prefixed\" with \"YT\". So for example\" YT1.1. so,
If you know they are real numbers [*] , simply:
>>> float(s1) > float(s2) True
[*] Otherwise, be ready to handle a raised ValueError.
ValueError