Generate a function in Python to calculate the value of an employee’s paycheck given the hours worked and the hourly rate.
def calc_paycheck(hours_worked, hourly_rate):
 return hours_worked * hourly_rate