1
0
forked from tdwojak/Python2017
Python2017/labs03/task04.py

21 lines
332 B
Python
Raw Normal View History

2017-12-12 19:24:28 +01:00
#!/usr/bin/env python
# -*- coding: utf-8 -*-
2017-12-11 19:29:05 +01:00
#task04
from weather import Weather
weather = Weather()
miasto ='Buk'
location = weather.lookup_by_location(miasto)
condition = location.condition()
print(condition.text())
data = condition.date()
dzien_slownie = data[0:3]
dzien = data[5:7]
miesiac = data[8:11]
rok = data[12:16]