
CodePudding user response:
1. Some conditions of repeated,2. 1% should be written as 0.01
Rewrite:
A=1
For I in range (365) :
S=% 11 I
If s==0:
A=a
The else:
If I % 7 in [0] :
A=a
The else:
A=a * (1 + 0.1)
Print (a)
You try to see
CodePudding user response:
1. Some conditions of repeated,