input: Write a python function to predict the weather based on humidity and temperature.
  assert predict_weather('65%', '24°C') == 'cloudy'
  assert predict_weather('85%', '30°C') in ['rain', 'snow']
  assert predict_weather('35%', '5°C') in ['rain', 'snow']
  assert predict_weather('50%', '26°C') == 'sunny'
  assert predict_weather('70%', '20°C') == 'cloudy'
output: def predict_weather(humidity, temperature):
      humidity_value = int(humidity.strip('%'))
      temperature_value = int(temperature.strip('°C'))
  
      if humidity_value > 80:
          return 'rain' if temperature_value > 0 else 'snow'
      elif humidity_value > 60:
          return 'cloudy'
      elif humidity_value > 40:
          return 'sunny'
      else:
          return 'rain' if temperature_value > 0 else 'snow'