Reduce Python Geeksforgeeks Programs