このコードの何が問題なのかを教えてください。最初の関数は正常に動作しますが、2 番目の関数は間違った数値を返します。sup post が返す 2 番目の変数は、午前 0 時から経過した残りの分数です。
def get_hours(s):
time=s/3600
return time
#The get_hour function returns how many hours have passed since midnight. The
# parameter is the time in seconds that has passed since midnight.
def get_minutes_remainder(s):
hours=get_hours(s)
minutes=s/60
a=round(hours)
b=a-hours
b=abs(b)
minutes=minutes*b
return minutes