def positive_int(argument):
 value = int(argument)
 if (value < 1):
  raise ValueError('negative or zero value; must be positive')
 return value

def positive_int ( argument ) : value = int ( argument ) if ( value < 1 ) : raise ValueError ( 'negative or zero value; must be positive' ) return value
converts the argument into an integer .