diff --git a/Python Code b/Python Code new file mode 100644 index 0000000..5af8279 --- /dev/null +++ b/Python Code @@ -0,0 +1,13 @@ +You are given a string and your task is to swap cases. In other words, convert all lowercase letters to uppercase letters and vice versa. + +For Example: +Pythonist 2 → pYTHONIST 2 + +------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ +def swap_case(s): + return s.swapcase() + +if __name__ == '__main__': + s = input() + result = swap_case(s) + print(result)