5 views
Problem: I've tried to solve an assignment with this code: bank_holiday= [1, 0, 1, 1, 2, 0, 0, 1, 0, 0, 0, 2] #gives the list of bank holidays in each month def bank_holiday(month): month -= 1#Takes away the numbers from the months, as months start at 1 ( ... "))) But when I run it, I get the error: TypeError: 'function' object is not subscriptable I don't understand where this is coming from...
asked
Jan 24
Mashhoodch
9.1k points