Using a search engine (ie, Google 'scanf python') will often give you a quick answer and possibly better than anyone will give you here.