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

In the followign 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 (152 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

The question provides examples of how the func2 function should behave but it lacks a detailed descr... 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!