I have this dictionary called biography
self.biography = {\'Name\' : \'\', \'Age\' : 0, \'Nationality\' : \'\', \'Position\' : 0, \'Footed\' : \'\'}
def create_player(self): for key in self.biography.keys(): val = input('Player {}: '.format(key.lower())) self.biography[key] = int(val) if val.strip().isdigit() else val