0

My code:

user_input = input() hourly_temperature = user_input.split()

for x in (hourly_temperature): print (x+' ->', end= ' ')

My output (Input is 1 2 3 4 5):

1 -> 2 -> 3 -> 4 -> 5 ->

My problem:

I want to remove that last arrow after the 5.

I tried limiting the range of hourly_temperature by doing:

for x in (hourly_temperature[0:]:

but this did not work

where_am_I
  • 17
  • 3

0 Answers0