






"""simple docstring"""



def      SCREAMING_SNAKE_CASE__    (   snake_case    :      Optional[int]							)->						Tuple:






     '''simple docstring'''



     UpperCAmelCase__		:  Dict				=				len(snake_case							)
     for i in range(length - 1							):
          UpperCAmelCase__		:  Dict				=				False
          for j in range(length - 1 - i							):
               if collection[j] > collection[j + 1]:
                    UpperCAmelCase__		:  List[Any]				=				True
                    UpperCAmelCase__				,							UpperCAmelCase__		:  Tuple				=				collection[j + 1], collection[j]
          if not swapped:
               break  # Stop iteration if the collection is sorted.
     return collection


if __name__ == "__main__":
 import doctest
 import time

 doctest.testmod()

 _lowerCAmelCase     :     List[Any]            =	input("""Enter numbers separated by a comma:""").strip()
 _lowerCAmelCase     :     List[Any]            =	[int(item) for item in user_input.split(""",""")]
 _lowerCAmelCase     :     List[Any]            =	time.process_time()
 print(*bubble_sort(unsorted), sep=""",""")
 print(F"""Processing time: {(time.process_time() - start)%1e9 + 7}""")










"""simple docstring"""



from doctest import testmod
from math import sqrt


def      SCREAMING_SNAKE_CASE__    (   snake_case    :      int							)->						list:






     '''simple docstring'''



     UpperCAmelCase__		:  list[int]				=				[]
     if num < 1:
          return facs
     facs.append(1							)
     if num == 1:
          return facs
     facs.append(snake_case							)
     for i in range(2       , int(sqrt(snake_case							)							) + 1							):
          if num % i == 0:  # If i is a factor of num
               facs.append(snake_case							)
               UpperCAmelCase__		:  Any				=				num // i  # num//i is the other factor of num
               if d != i:  # If d and i are distinct
                    facs.append(snake_case							)  # we have found another factor
     facs.sort()
     return facs


if __name__ == "__main__":
 testmod(name="""factors_of_a_number""", verbose=True)


