Number Present Problem in Python