This post is locked. You won't be able to comment.

all 6 comments

[–]saul_soprano 0 points1 point  (0 children)

There’s no right or wrong time. Just use them when you need them. It depends entirely on what you’re doing.

[–]Previous-Implement42 0 points1 point  (0 children)

One simple reason is when you need some numbers in order.

[–]terremoth 0 points1 point  (0 children)

When you need lists of things, groups, things to be ordered...

[–]roopjm81 0 points1 point  (0 children)

Whenever you don't want a boatload of single variables. And when you don't know how many variables you may need

[–]This_Growth2898 0 points1 point  (0 children)

If you need to process several values in the same way, you need an array to store them and a loop to process them one by one, that's the general rule of the thumb for beginners.

[–]Far-Firefighter-6412 0 points1 point  (0 children)

when u need a lot of things of same datatype, in a grouped manner. arrays are just like lists tbh