Write a function to calculate amount of radioactive element left based on initial amount and half life


Topic: Write a function to calculate amount of radioactive element left based on initial amount and half life

Solution

def cal_half_life(initail_quatity:float, time_elapsed:float, half_life:float)->float:
    return initail_quatity*((1/2)**(time_elapsed/half_life))



List all Python Programs