0
What is better for this situation? array, switch st. or something else?
2 odpowiedzi
0
From my experience, I would say arrays can be a better option. Mainly because of less code.
Followed by
- Switch
- If/ if else/ else
For example if you wanted to do months, you would have to do 12 switch statements. Taking up much code.
An array can contain all the months probably in just a few lines of code.
0
I would prefer a dictionary.