Skip to main content

Posts

Showing posts with the label sWAP cASE Hackerrank Solution Python

sWAP cASE Hackerrank Solution Python

 sWAP cASE Hackerrank Solution Python For Explanation Watch Video: Sample Input 0 HackerRank.com presents "Pythonist 2". Sample Output 0 hACKERrANK.COM PRESENTS "pYTHONIST 2". Code: def  swap_case(s):      return  s.swapcase() if  __name__ ==  '__main__' :     s =  input ()     result = swap_case(s)      print (result)