Geeksforgeeks Python String Format