write a program to calculate and fine for returning a book late to the library for first 7days fine rs.1 per day next 14 days rs.2 per day,next 21 days rs.3 perday,above 21 rs.4 per day pls answer
Answers
Answered by
0
d ={}
sum = 0
y = int(input("Enter a month to like 30 31"))
x = int(input("Enter day submit book..."))
for i in range(7,y+1,7):
sum = sum+1
d[i]=sum
u = d
for i in u:
if x==i:
print(d.get(i),"Rupees cut from your wallet...")
It's very Trick program
But it solved
*Mark me as brainly
Similar questions