human
Calculate sum of scores after N days based on given conditions | Function to c sum of calculate sum of scores after n days.
Store the required sum.
Store the score on previous monday and current day respectively.
Iterate over the range [ 1 , n ].
If the current day is monday.
Increment score of prev_monday by 1.
Update score of current day.
Add score of current day and increment score for next day.
Print the result.
Driver Code"
How can the above be solved in Python?
 ... What is a code to calculate sum of scores after N days based on given conditions and the other steps required?
assistant
#Here is code to calculate sum of scores after N days based on given conditions and the other steps required.
 def findScoreSum ( n ) :
	total = 0
	prev_monday , curr_day = 0 , 0
	for day in range ( 1 , n + 1 ) :
		if ( day % 7 == 1 ) :
			prev_monday += 1
			curr_day = prev_monday
		total += curr_day
		curr_day += 1
	print ( total )
if __name__ == ' _ _ main _ _ ' :
	N = 8
	findScoreSum ( N )