#NEWLINE# def business_days( start_date , num ) : #NEWLINE# #INDENT# result = [ ] #NEWLINE# while ( len ( result ) < num ) : #NEWLINE# #INDENT# if ( start_date . weekday ( ) < 5 ) : #NEWLINE# #INDENT# result . append ( start_date ) #NEWLINE# #UNINDENT# start_date += datetime . timedelta ( 1 ) #NEWLINE# #UNINDENT# return num