AdditionalPylons

Weather

Jun 19th, 2023
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.24 KB | Source Code | 0 0
  1. import requests as rq
  2. w = rq.get(f'https://wttr.in/Moscow?m&format=2')
  3. w = w.text.split()
  4. print(f"Погода: {w[0]}\nТемпература: {w[1][1:]}\nВетер:\n  направление: {w[2][2]}\n  скорость: {w[2][3:]}",)
Advertisement
Add Comment
Please, Sign In to add comment