text: inputStr = str(input("Choose a number for a: "))
  words = inputStr.split()
  lower = []
  upper = []
  for char in inputStr:
      if char.islower():
          lower.append(char)
      else:
          upper.append(char)
  sortedString = ''.join(lower + upper)
  print("\n arranging characters giving precedence to lowercase letters:")
  print(sortedString)