A static array holds a number of preset values:
1 2 3 4 | # monthnames = [ "January" , "February" , ...] monthdays = [ 31 , 28 , ...] # |
Each item can be accessed by an index value:
1 2 3 4 | # index = 5 print (f "{monthnames[index]} has {monthdays[index]} days" } # |