I’m writing a function to calculate calendar dates. While cutting down on lines, I’ve found that I am unable to assign multiple variables to the same range.
Jan, Mar, May, Jul, Aug, Oct, Dec = range(1,32)
Would there be an efficient way to assign these values and why does python give a ValueError?
Use