# My name is Pavan Kumpatla and today's date is November 23, 2021.
# This is Mod 7 Project
# ...
# [] create The Weather
!curl https://raw.githubusercontent.com/MicrosoftLearning/intropython/master/world_temp_mean.csv -o mean_temp.txt
# imports
city_file = open('mean_temp.txt', 'a+')
# opens mean_temp.txt in a+ mode
city_file.write('Rio de Janeiro,Brazil,30.0,18.0')
# writes
city_file.seek(0)
# points to beginning
headings = city_file.readline()
# reads line
heading = headings.split(',')
# splits headings with ","
city_temp = city_file.readline()
# reads lines and stores it
while city_temp:
# while city_temp
city = city_temp.split(',')
# splits city_temp with ","
print(heading[0].title(), 'of', city[0], heading[2], 'is', city[2], 'Celcius')
# prints
city_temp = city_file.readline()
# reads line, stores
city_file.close()
# closes