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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 20:30, carter4026
Write 150 words on what kind of website would you like to make in the future? what sites would you like to model yours after?
Answers: 2
image
Computers and Technology, 22.06.2019 05:30, Cassandoo
The total revenues for a company are $150,223 and the total expenses were 125,766. if you are calculating the net income, which of these spreadsheets would you use? insert a spreadsheet with $150,223 in cell b2 and 125, 766 in cell b3. enter a formula =b2-b3. the formula should be showing in the formula bar. insert a spreadsheet with $150,223 in cell b2 and 125, 766 in cell b3. enter a formula =b2+b3. the formula should be showing in the formula bar. insert a spreadsheet with $150,223 in cell b2 and 125, 766 in cell b3. enter a formula =b2/b3. the formula should be showing in the formula bar. insert a spreadsheet with $150,223 in cell b2 and 125, 766 in cell b3. enter a formula =b2*b3. the formula should be showing in the formula bar.
Answers: 3
image
Computers and Technology, 22.06.2019 18:30, leannhb3162
Which of these options are the correct sequence of actions for content to be copied and pasted? select content, click the copy button, click the paste button, and move the insertion point to where the content needs to be inserted. click the copy button, select the content, move the insertion point to where the content needs to be inserted, and click the paste button. select the content, click the copy button, move the insertion point to where the content needs to be inserted, and click the paste button. select the content, move the insertion point to where the content needs to be inserted, click the copy button, and click the paste button.
Answers: 3
image
Computers and Technology, 23.06.2019 18:00, larry5007
Freya realizes she does not have enough in her bank account to use the debit card. she decides to use a credit card instead. which questions should freya answer before using a credit card? check all that apply. can i pay at least the minimum payment each month? can i make payments on time and avoid late fees? will i have to take out a loan? how much in finance charges can i afford to pay? should i talk to a consumer credit counseling service?
Answers: 1
You know the right answer?
The WeatherCreate a program that:Imports and opens a fileAppends additional data to a fileReads from...

Questions in other subjects:

Konu
Mathematics, 21.01.2021 21:40
Konu
Mathematics, 21.01.2021 21:40