subject

Write a loop to print all elements in hourly_temperature. separate elements with a -> surrounded by spaces. sample output for the given program: (must be in python)

90 -> 92 -> 94 -> 95
note: there is a space after 95.



hourly_temperature = [90, 92, 94, 95]

for temp in hourly_temperature:
for index, temp in enumerate(str(temp)):
if index ! = len(temp)-1:
print(temp,'-> ',end=' ')
else:
print(temp, end='')

print('') # print newline



my expected out is:

90 -> 92 -> 94 -> 95

i keep getting:

90 -> 92 -> 94 -> 95 ->

note: i can't edit the last line "print('') #print newline"

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 22:00
Researchers measured the data speeds for a particular smartphone carrier at 50 airports. the highest speed measured was 78.1 mbps. the complete list of 50 data speeds has a mean of x overbarequals16.11 mbps and a standard deviation of sequals18.65 mbps. a. what is the difference between​ carrier's highest data speed and the mean of all 50 data​ speeds? b. how many standard deviations is that​ [the difference found in part​ (a)]? c. convert the​ carrier's highest data speed to a z score. d. if we consider data speeds that convert to z scores between minus2 and 2 to be neither significantly low nor significantly​ high, is the​ carrier's highest data speed​ significant? a. the difference is nothing mbps.
Answers: 3
question
Computers and Technology, 23.06.2019 00:30
Knowing that the central portion of link bd has a uniform cross sectional area of 800 mm2 , determine the magnitude of the load p for which the normal stress in link bd is 50 mpa. (hint: link bd is a two-force member.) ans: p = 62.7 kn
Answers: 2
question
Computers and Technology, 23.06.2019 09:00
The first screen you see when you open word2016 what is called? ​
Answers: 1
question
Computers and Technology, 23.06.2019 20:30
If an appliance consumes 500 w of power and is left on for 5 hours, how much energy is used over this time period? a. 2.5 kwh b. 25 kwh c. 250 kwh d. 2500 kwh
Answers: 1
You know the right answer?
Write a loop to print all elements in hourly_temperature. separate elements with a -> surrounded...
Questions
question
Arts, 03.06.2020 20:04
question
Biology, 03.06.2020 20:04
question
Social Studies, 03.06.2020 20:04
question
Mathematics, 03.06.2020 20:04
question
Mathematics, 03.06.2020 20:04
question
Business, 03.06.2020 20:04
Questions on the website: 13920327