14
Xen Kute
Last seen 8 years ago
Member for 10 years, 9 months, 13 days
Difficulty Normal
Nice! And thanks for sum(**_i%7>4_** ....)
I have to improve my solution:
checkio=lambda a,b: sum(i%7>4 for i in range(a.weekday(),(b-a).days+a.weekday()+1))
More
return '(x-{})^2+(y-{})^2={}^2'.format(*map(format, (x, y, r)))
No need to use format function here. Solution is %.3g
'(x-%.3g)^2+(y-%.3g)^2=%.3g^2'%(x,y,r)
More