<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def two_point_attempts(self):
 """ Returns an ``int`` of the total number of two point field goals the player attempted during the season. """

        if self.field_goal_attempts and self.three_point_attempts:
            return int(self.field_goal_attempts - self.three_point_attempts)
        # Occurs when the player didn't take any three pointers, so the number
        # of two pointers the player took is equal to the total number of field
        # goals the player took.
        if self.field_goal_attempts:
            return int(self.field_goal_attempts)
        # If the player didn't take any shots, they didn't take any two point
        # field goals.
        return None