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"} #
Glow Blogs uses cookies to enhance your experience on our service. By using this service or closing this message you consent to our use of those cookies. Please read our Cookie Policy.