Skip to content

Latest commit

 

History

History
30 lines (18 loc) · 685 Bytes

File metadata and controls

30 lines (18 loc) · 685 Bytes

Unit 2 Practice

Exercise 3 - Flip Letter Casing

Have the user enter a word or phrase. Print out the word or phrase with the cases of all the letters flipped.

Enter a word or phrase: HeLlO wOrLd

output:
hElLo WoRlD

------------------------------------------
Enter a word or phrase: UPPER lower
  
output: 
upper LOWER

------------------------------------------
Enter a word or phrase: supERCaliFRagIliSticEXpiAliDoCIOus
  
output: 
SUPercALIfrAGiLIsTICexPIaLIdOcioUS

Exercise 3 solution