Computers and Technology, 07.12.2019 06:31 elenagarcia123
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"
Answers: 2
Computers and Technology, 23.06.2019 17:30, kenyasutton10
What are the most commonly found items in the trash according to the municipal solid waste report?
Answers: 1
Write a loop to print all elements in hourly_temperature. separate elements with a -> surrounded...
Mathematics, 31.01.2020 12:43
World Languages, 31.01.2020 12:43
English, 31.01.2020 12:43
Mathematics, 31.01.2020 12:43
Mathematics, 31.01.2020 12:43
Mathematics, 31.01.2020 12:43
Chemistry, 31.01.2020 12:43