I have a list called current_month_list which is populated each month with Mondays in the month. ie for June it would be:
current_month_list = 6, 13, 20, 27
Im using
next_rubbish_day = next(x for x in current_month_list if x > todays_date.day)
to return the next Monday in the list i.e. 20 as todays the 16
This has worked well but im trying to convert over to Pyscript it use this in a different environment and apparently (quoted on another site) '
pyscript includes an async python interpreter and doesn't implement certain features that are particularly difficult in an interpreter. That includes generators.
The error im getting is
not implemented ast ast_generatorexp
So my question is, is there another way to code this. Im not to good with python so would appreciate some help. Thank you in anticipation.