Določanje števk trimestnega števila in obračanje števila (python)