Answered step by step
Verified Expert Solution
Link Copied!

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 mycase(chars, 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 built-in 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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions