Python assigning multiple variables to same list value?
list, python
Solution
Use
Jan = Mar = May = ... = range(1, 32)
Problem
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?