孩子在学PYTHON 卡在这道题上了,请指点一下
Instructions
Write a function upper_lower that consumes a string plainand produces a string with the same characters as in plainexcept that all letters in the first half of the string are in upper case and all the rest of the letters are in lower case. Non-letters should be the same.
If the length of the string is odd, the "first half" should contain the middle character.
Warning: Make sure to use the name of the function given in the instructions.
Instructions
Write a function upper_lower that consumes a string plainand produces a string with the same characters as in plainexcept that all letters in the first half of the string are in upper case and all the rest of the letters are in lower case. Non-letters should be the same.
If the length of the string is odd, the "first half" should contain the middle character.
Warning: Make sure to use the name of the function given in the instructions.


