# We can use the swapcase() method to, you guessed it, switch the case of each letter. Use swapcase() on the string below

string1 = "We wAnT TO swAp the caSe oF eacH lETTeR"

print(string1.swapcase())

# Use the replace() method to correct the error in the string below.

string2 = "Dr. McConnell is the Head of School at Stratford Hall."

print(string2.replace('Dr. McConnell', 'Mr. McBride'))
392c4b3f8b1898f9e8e87185c52e5ab42e1f242e
<mask token>

<mask token>
print(string1.swapcase())
<mask token>
print(string2.replace('Dr. McConnell', 'Mr. McBride'))

string1 = 'We wAnT TO swAp the caSe oF eacH lETTeR'
print(string1.swapcase())
string2 = 'Dr. McConnell is the Head of School at Stratford Hall.'
print(string2.replace('Dr. McConnell', 'Mr. McBride'))

# We can use the swapcase() method to, you guessed it, switch the case of each letter. Use swapcase() on the string below

string1 = "We wAnT TO swAp the caSe oF eacH lETTeR"

print(string1.swapcase())

# Use the replace() method to correct the error in the string below.

string2 = "Dr. McConnell is the Head of School at Stratford Hall."

print(string2.replace('Dr. McConnell', 'Mr. McBride'))