mirror of
https://github.com/KevinMidboe/knowit_julekalender-2018.git
synced 2026-01-04 16:35:31 +00:00
New year, new round of knowit julekalender. Starting this year off a bit late, but lets see how many I can complete 🎉🎅
This commit is contained in:
@@ -1,23 +0,0 @@
|
||||
#!/usr/bin/env python3.6
|
||||
|
||||
import os
|
||||
from pprint import pprint
|
||||
|
||||
def readFile():
|
||||
with open(os.path.dirname(__file__) + '/verda.txt', 'r') as f:
|
||||
read_data = f.read().splitlines()
|
||||
f.close()
|
||||
return read_data
|
||||
|
||||
def main():
|
||||
data = readFile()
|
||||
for line in data[1:]:
|
||||
listview = line.split('\t')
|
||||
city = listview[3]
|
||||
country = listview[10]
|
||||
cord = [listview[12], listview[13]]
|
||||
# print('place: {}', city, 'in', country)
|
||||
# print('cord:', cord)
|
||||
|
||||
if __name__=='__main__':
|
||||
main()
|
||||
16371
luke_06/verda.txt
16371
luke_06/verda.txt
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user