Geeksforgeeks Python String Format Function