- "{:.2f}".format(weather_data['temp']),
- "{:.2f} mm/h".format(weather_data['precipitation']),
- "{:.1f} km/h {}".format(weather_data['windspeed'], weather_data['winddirection']),
+ f"{weather_data['temp']:.2f}",
+ f"{weather_data['precipitation']:.2f} mm/h",
+ f"{weather_data['windspeed']:.1f} km/h {weather_data['winddirection']}",