






'''simple docstring'''

from __future__ import annotations






class        a_		:

  def __init__(   self    ,	_SCREAMING_SNAKE_CASE   )						->   None:



        """simple docstring"""






        UpperCamelCase       						=      data
        UpperCamelCase       						=      None
        UpperCamelCase       						=      None







def 					lowercase__				(   __UpperCamelCase					)->				None:  # In Order traversal of the tree






      if tree:
            display(tree.left					)
            print(tree.data					)
            display(tree.right					)







def 					lowercase__				(   __UpperCamelCase					)->				int:
      return 1 + max(depth_of_tree(tree.left					)	,		depth_of_tree(tree.right					)					) if tree else 0







def 					lowercase__				(   __UpperCamelCase					)->				bool:






      if not tree:
            return True
      if tree.left and tree.right:
            return is_full_binary_tree(tree.left					) and is_full_binary_tree(tree.right					)
      else:
            return not tree.left and not tree.right







def 					lowercase__				(   )->				None:  # Main function for testing.
      UpperCamelCase       						=      Node(1					)
      UpperCamelCase       						=      Node(2					)
      UpperCamelCase       						=      Node(3					)
      UpperCamelCase       						=      Node(4					)
      UpperCamelCase       						=      Node(5					)
      UpperCamelCase       						=      Node(6					)
      UpperCamelCase       						=      Node(7					)
      UpperCamelCase       						=      Node(8					)
      UpperCamelCase       						=      Node(9					)

      print(is_full_binary_tree(_lowercase					)					)
      print(depth_of_tree(_lowercase					)					)
      print("""Tree is: """					)
      display(_lowercase					)


if __name__ == "__main__":
     main()







'''simple docstring'''

SCREAMING_SNAKE_CASE__											=     8.31_44_62  # Unit - J mol-1 K-1







def 					lowercase__				(   __UpperCamelCase	,		__UpperCamelCase	,		__UpperCamelCase					)->				float:
      if moles < 0 or kelvin < 0 or volume < 0:
            raise ValueError("""Invalid inputs. Enter positive value."""					)
      return moles * kelvin * UNIVERSAL_GAS_CONSTANT / volume







def 					lowercase__				(   __UpperCamelCase	,		__UpperCamelCase	,		__UpperCamelCase					)->				float:
      if moles < 0 or kelvin < 0 or pressure < 0:
            raise ValueError("""Invalid inputs. Enter positive value."""					)
      return moles * kelvin * UNIVERSAL_GAS_CONSTANT / pressure


if __name__ == "__main__":
     from doctest import testmod

     testmod()
