From e9aa4a1c2dd64ef6c019018091d762fe42a6300e Mon Sep 17 00:00:00 2001 From: Oshin Dhawan <61008588+DvnOshin@users.noreply.github.com> Date: Tue, 11 Oct 2022 16:18:19 +0530 Subject: [PATCH 1/3] Create Python Programs --- Python Programs | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 Python Programs diff --git a/Python Programs b/Python Programs new file mode 100644 index 0000000..5af8279 --- /dev/null +++ b/Python Programs @@ -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) From c4bafb5dc641dcac25ea77ecd005d405efe22d1a Mon Sep 17 00:00:00 2001 From: Oshin Dhawan <61008588+DvnOshin@users.noreply.github.com> Date: Tue, 11 Oct 2022 16:19:27 +0530 Subject: [PATCH 2/3] Delete Python Programs --- Python Programs | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100644 Python Programs diff --git a/Python Programs b/Python Programs deleted file mode 100644 index 5af8279..0000000 --- a/Python Programs +++ /dev/null @@ -1,13 +0,0 @@ -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) From 867d31f9847a76e9d691dbfa5c9f87491a6cf032 Mon Sep 17 00:00:00 2001 From: Oshin Dhawan <61008588+DvnOshin@users.noreply.github.com> Date: Tue, 11 Oct 2022 16:20:24 +0530 Subject: [PATCH 3/3] Create Python Code --- Python Code | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 Python Code 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)