Convert User Input String Python Definition Function Of Three