subject

The WeatherCreate a program that:Imports and opens a fileAppends additional data to a fileReads from the file to displays each city name and month average high temperature in CelsiusOutput: The output should resemble the followingCity of Beijing month ave: highest high is 30.9 CelsiusCity of Cairo month ave: highest high is 34.7 CelsiusCity of London month ave: highest high is 23.5 CelsiusCity of Nairobi month ave: highest high is 26.3 CelsiusCity of New York City month ave: highest high is 28.9 CelsiusCity of Sydney month ave: highest high is 26.5 CelsiusCity of Tokyo month ave: highest high is 30.8 CelsiusCity of Rio De Janeiro month ave: highest high is 30.0 CelsiusAll of the above text output is generated from the file. Only these strings are hard coded:"is""of""Celsius"Import the file into the Jupyter Notebook environmentUse !curl to download https://raw. githubusercontent. com/MicrosoftLearning/intropython/m aster/world_temp_mean. csv as mean_temp. txt# [ ] The Weather: import world_mean_team. csv as mean_temp. txt into the Jupyter notebookAdd the weather for RioOpen the file in append plus mode ('a+')Write a new line for Rio de Janeiro "\nRio de Janeiro, Brazil,30.0,18.0"Grab the column headingsUse .seek() to move the pointer to the beginning of the fileRead the first line of text into a variable called: headingsConvert headings to a list using .split(',') which splits on each comma# [ ] The Weather: open file, read/print first line, convert line to list (splitting on comma)Read the remaining lines from the file using a while loopAssign remaining lines to a city_temp variableConvert the city_temp to a list using .split(',') for each .readline() in the loopPrint each city & the highest monthly average temperatureClose mean_temps>Tips & Hints:Print headings to determine indexes to use for the final output (what is in headings[0], [1], [2]..?)The city_temp data follows the order of the headings (city_temp[0] is described by headings[0])The output should look like: "month ave: highest high" for Beijing is 30.9 CelsiusConvert city_temp to lists with .split(',')# [ ] The Weather: use while loop to print city and highest monthly average temp in celsius# [] create The Weather

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 09:00
Design a class tictactoe that: holds the following information about the game: two-dimensional array (3 by 3), and winner. add additional variables as needed. includes the functions to perform the various operations on objects. for example, function to print the board, getting the move, checking if move is valid, determining if there is a winner after each move. add additional operations as needed. includes constructor(s). write the functions of the class, and write a program that uses the class. the program should declare an object of type tictactoe. the program will create the board and store it in the array. the program will allow two players to play the tic-tac-toe game. after every valid move update the array, check if there is a winner. if there is no winner and no tie, then print the board again to continue.
Answers: 2
question
Computers and Technology, 23.06.2019 21:20
In microsoft word, when you highlight existing text you want to replace, you're in              a.  advanced mode.    b.  automatic mode.    c.  basic mode.    d.  typeover mode
Answers: 1
question
Computers and Technology, 23.06.2019 23:40
Which of the following calculates the total from the adjacent cell through the first nonnumeric cell by default, using the sum function in its formula? -average -autosum -counta -max
Answers: 1
question
Computers and Technology, 24.06.2019 02:00
Which steps will open the system so that you can enter a question and do a search for
Answers: 1
You know the right answer?
The WeatherCreate a program that:Imports and opens a fileAppends additional data to a fileReads from...
Questions
question
Mathematics, 14.05.2021 22:40
question
Mathematics, 14.05.2021 22:40
Questions on the website: 13722359