Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a function called mycase ( chars , option ) to return a copy of string chars with the case converted. The input argument option
Write a function called mycasechars option to return a copy of string chars with the case converted. The input argument option is a keyword or keyworded argument with a default value "lower". When option "lower", covert all letters to lowercase; when option "upper", covert all letters to uppercase; when option "capitalize", convert the first character to uppercase and the rest lowercase. Python builtin functions are allowed. Define the function only without calling it Assume all characters in chars are alphabetic and there is at least one character.
Write a function called mycasechars option to return a copy of string chars with the case converted. The input argument option is a keyword or keyworded argument with a default value "lower". When option "lower", covert all letters to lowercase; when option "upper", covert all letters to uppercase; when option "capitalize", convert the first character to uppercase and the rest lowercase. Python builtin functions are allowed. Define the function only without calling it Assume all characters in chars are alphabetic and there is at least one character.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started