
"""simple docstring"""

from __future__ import annotations
class      _UpperCAmelCase							:




      def __init__(							self   ,       lowercase_=None							)						->					Dict:
          UpperCAmelCase									=					data
          UpperCAmelCase									=					None




      def __repr__(							self							)						->					Optional[Any]:
          UpperCAmelCase									=					[]
          UpperCAmelCase									=					self
          while temp:
              string_rep.append(F"{temp.data}"							)
              UpperCAmelCase									=					temp.next
          return "->".join(lowercase_							)




def     lowercase__						(					lowerCAmelCase				:					list ) ->      List[Any]:






    """simple docstring"""




    if not elements_list:
        raise Exception('The Elements List is empty' )

    UpperCAmelCase									=					UpperCAmelCase									=					Node(elements_list[0] )
    for i in range(1 ,				len(lowerCAmelCase ) ):
        UpperCAmelCase									=					Node(elements_list[i] )
        UpperCAmelCase									=					current.next
    return head




def     lowercase__						(					lowerCAmelCase				:					Node ) ->      None:






    """simple docstring"""




    if head_node is not None and isinstance(lowerCAmelCase ,				lowerCAmelCase ):
        print_reverse(head_node.next )
        print(head_node.data )




def     lowercase__						(					) ->      Optional[int]:






    """simple docstring"""




    from doctest import testmod

    testmod()

    UpperCAmelCase									=					make_linked_list([14, 52, 14, 12, 43] )
    print('Linked List:' )
    print(lowerCAmelCase )
    print('Elements in Reverse:' )
    print_reverse(lowerCAmelCase )


if __name__ == "__main__":
   main()





"""simple docstring"""

def     lowercase__						(					lowerCAmelCase				:					int ,				lowerCAmelCase				:					int ) ->      int:






    """simple docstring"""




    return number | (1 << position)




def     lowercase__						(					lowerCAmelCase				:					int ,				lowerCAmelCase				:					int ) ->      int:






    """simple docstring"""




    return number & ~(1 << position)




def     lowercase__						(					lowerCAmelCase				:					int ,				lowerCAmelCase				:					int ) ->      int:






    """simple docstring"""




    return number ^ (1 << position)




def     lowercase__						(					lowerCAmelCase				:					int ,				lowerCAmelCase				:					int ) ->      bool:






    """simple docstring"""




    return ((number >> position) & 1) == 1




def     lowercase__						(					lowerCAmelCase				:					int ,				lowerCAmelCase				:					int ) ->      int:






    """simple docstring"""




    return int((number & (1 << position)) != 0 )


if __name__ == "__main__":
   import doctest

   doctest.testmod()



