<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def profiles(weeks):
 """ Number of weeks to build. Starting with the current week. """

    profiles = Profiles(store)
    weeks = get_last_weeks(weeks) if isinstance(weeks, int) else weeks
    print(weeks)
    profiles.create(weeks)