Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
append no working
#1
I wrote this simple python program

L=[]

for i in range(0,5):                                        
    L.append(i)  
   
print(*L, sep = ", ")

The output is 0, 1, 2, 3, 4
Why is the output in reverse order?

Thanks
Reply


Messages In This Thread
append no working - by pythonduffer - Apr-12-2019, 06:00 AM
RE: append no working - by Gribouillis - Apr-12-2019, 06:15 AM
RE: append no working - by pythonduffer - Apr-12-2019, 06:22 AM
RE: append no working - by perfringo - Apr-12-2019, 06:32 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Append not working WiPi 3 5,798 May-05-2020, 03:31 PM
Last Post: deanhystad
  Cant Append a word in a line to a list err "str obj has no attribute append Sutsro 2 2,613 Apr-22-2020, 01:01 PM
Last Post: deanhystad
  append not working as expected teachinggeek 2 2,280 Apr-09-2020, 04:32 AM
Last Post: buran

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020