# take input
      string = input('Enter any string: ')
      # convert uppercase to lowercase
      new_string =''
      for i in range(len(string)):
          if(string[i] >= 'A' and string[i] <= 'Z'):
              new_string = new_string + chr((ord(string[i]) + 32))
          else:
              new_string = new_string + string[i]
      # print lowercase string
      print('In Lower Case:',new_string)
      
      Python language logo

      Upper To Lower

      beginner
      strings

      Python program to convert uppercase to lowercase

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.