code: def wind_bft(ms):
      "Convert wind from metres per second to Beaufort scale"
      if ms is None:
          return None
      for bft in range(len(_bft_threshold)):
          if ms < _bft_threshold[bft]:
              return bft
      return len(_bft_thresholdf wind_bft(ms):
      "Convert wind from metres per second to Beaufort scale"
      if ms is None:
          return None
      for bft in range(len(_bft_threshold)):
          if ms < _bft_threshold[bft]:
              return bft
      return len(_bft_threshold)
docs: Convert wind from metres per second to Beaufort scale