(Aug-18-2020, 07:30 PM)eddywinch82 Wrote: where the Date begins with the 6th Day of the month
(Aug-18-2020, 07:15 PM)eddywinch82 Wrote: The Date's for the Data are in the format :%d-%b-%Y
not sure what you mean by "begins" with 6th day of the month", when format ends with year, so endswith should return if year ends with '-6' or '-8'
spam = 'foo-6', 'foo-5', 'foo-8' for egg in spam: if egg.endswith(('-6', '-8')): print(egg)
Output:foo-6
foo-8
maybe give us runable example, including some sample data, that reproduce the problem.
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs