Toggle Case Problem
Toggle Case Problem — ExecCode School DSA Practice
Solve the Toggle Case problem on ExecCode. Free online school DSA practice in Strings - Basics. Write and run code in Java, C++, Python — no signup required to run.
Problem description
You are given a string of letters. Your task is to change each lowercase letter to uppercase, and each uppercase letter to lowercase. Print the new string.
Examples
Input Hello; Output hELLO. Input tOGGLE; Output Toggle
Constraints
Length <= 100
Practice Toggle Case free on ExecCode. Browse DSA problems, topic map, and placement guides.