Python pinger assignment