• + 0 comments

    ---------------------------------------MY SOLUTION--------------------------------------

    1. Assign values to three vars (day, month, year) using string index.
    2. Store the calendar in a variable. cal = calendar.weekday(year, month, day)
    3. Create a list to hold days of the week starting from monday. (0th element is monday).
    4. Iterate over the list elements and print out the respective list element which is equal to the value in cal variable https://colab.research.google.com/drive/12QEMyeN8SyuFAxjwgKdLcqMm__0gV5rT?usp=sharing