Brent Capuano949 Points
please help. im not sure how to do this
Listen. This is my second post on this. I dont know how to do this. Im tired of this challenge. I dont know how to do this. I wish I had an example to go by but this program teaches you something then expects you to know "advanced" stuff like adding in integers. Well guess what? I dont get it. And people hang the carrot in your face and expect you to just figure it out. Well Im not sure i ever learned this INT upper case splicing anywhere. How about a freaking hints section so i dont have to wait for an entire day to get help on something. as you can see im super frustrated and im getting annoyed
def sillycase(): sillycase[0:5] = sillycase.lower sillycase[5:] = sillycase.upper
Krishna Desai6,101 Points
Hey Brent Capuano,
You're off to a great start! I see four issues with your code.
- Your function does not have accept any arguments.
- You've arbitrarily chosen 5 to be the "middle" of the string. In reality, you wouldn't know where the middle actually would fall. That's why the exercise suggests that you use integer division or round to determine the middle. Hint: The middle would be half the total length.
- Strings are immutable. This means that they can't be changed and therefore you can't assign anything to them. You can however concatenate two strings and return that result.
- When calling a method, you need to include the parentheses e.g. sillycase.lower()
Hope that helps!