Create a function that takes a string and returns that string with the first half lowercased and the last half uppercased.
Example:
foobar => fooBAR
If the string length is an odd number then 'round' it up to find which letters to uppercase. See example below.
sillycase("brian")
// --^-- midpoint
// bri first half (lower-cased)
// AN second half (upper-cased)
Language: Python
Length: 58 now
It doesn't look like 58 characters because of the tabs and the new lines, but you can type this into the developer console:
and it prints 58
BTW dannywilson's is actually 62, you can see by doing this in the console:
If you don't count new lines or spaces dannywilson's is 58, but if I don't count them I have 54