def get_cost minutes 360 600 if minutes 360 return else return minutes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
def get_cost(minutes):
a = 360
b = 600
c = 3
if minutes < 360:
return b
else:
return b + (minutes - a) * c
print get_cost(361)