Premier or not in Python

Get Solution for free from DataCamp guru