forked from tdwojak/Python2017
commited tasks
This commit is contained in:
parent
1fc06b7b66
commit
832c2d6460
18
labs03/task04.py
Normal file
18
labs03/task04.py
Normal file
@ -0,0 +1,18 @@
|
||||
#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]
|
Loading…
Reference in New Issue
Block a user