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