Question: Function 2: In this function assume that the first parameter is a string that contains characters in A-Z and a-z only. The only functions you

Function 2: In this function assume that the first parameter is a string that contains characters in A-Z and a-z only. The only functions you are allowed to use are range(), len(), chr(), ord().
YOU CAN NOT USE .upper or .lower, can only use the functions said above.
• Examples:
◦ func2("GeorgeMason") → "GeorgeMason"
◦ func2("GeorgeMason", "upper", 2, 3) → "GeORgeMason"
◦ func2("GeorgeMason", "upper", 5) → "GeorgEMASON"
◦ func2("GeorgeMason", "lower") → "georgemason"
◦ func2("GeorgeMason", s=8, c="upper") → "GeorgeMaSON"
◦ func2("GeorgeMason", "lower", e=0) → "georgeMason"

Step by Step Solution

3.39 Rating (161 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

The given question is incomplete as it lacks precise details on what the function func2 needs to acc... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!