🔒 Closed List

Status
Not open for further replies.

KristanC

Honorary Poster
Hello po
for i in range(5)
print(i)
That's a normal loop but I want my output be stored into a list like this

[1,2, 3,4]
Is there a way everytime I tried to execute my code I got this result

[1] [2] [3] [4]
 
Status
Not open for further replies.

About this Thread

  • 3
    Replies
  • 302
    Views
  • 3
    Participants
Last reply from:
angelofmercy

Trending Topics

Online now

Members online
1,334
Guests online
1,843
Total visitors
3,177

Forum statistics

Threads
2,292,197
Posts
29,075,109
Members
1,210,200
Latest member
paulakagshsihd
Back
Top