🔒 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
  • 294
    Views
  • 3
    Participants
Last reply from:
angelofmercy

Trending Topics

Online now

Members online
1,114
Guests online
1,004
Total visitors
2,118

Forum statistics

Threads
2,273,776
Posts
28,951,512
Members
1,234,951
Latest member
Gabskie
Back
Top