From this django answer in SO, I found 3 variables "JAN", "FEB" and "MAR" in the class "Month" extending "models.TextChoices" as shown below:
# "models.py"
from django.db import models
class MyModel(models.Model):
class Month(models.TextChoices):
JAN = "1", "JANUARY" # Here
FEB = "2", "FEBRUARY" # Here
MAR = "3", "MAR" # Here
# (...)
month = models.CharField(
max_length=2,
choices=Month.choices,
default=Month.JAN
)
And multiple values are assigned to each variable without brackets "[]" which creates List or parentheses "()" which creates Tuple as shown below:
JAN = "1", "JANUARY"
FEB = "2", "FEBRUARY"
MAR = "3", "MAR"
Now, can multiple values be assigned to one variable without brackets "[]" or parentheses "()" in Python?