





# Function to print upper half of diamond (pyramid)






def 							_lowerCAmelCase (  _a   :					Union[str, Any]			)	->			List[str]:
     for i in range(0					,   _a			):
          for _ in range(0					,   n - i - 1			):  # printing spaces
               print(""" """					,   end=""""""			)
          for _ in range(0					,   i + 1			):  # printing stars
               print("""* """					,   end=""""""			)
          print()






def 							_lowerCAmelCase (  _a   :					Optional[Any]			)	->			Tuple:
     for i in range(_a					,   0					,   -1			):
          for _ in range(_a					,   0					,   -1			):  # printing stars
               print("""* """					,   end=""""""			)
          print()
          for _ in range(n - i + 1					,   0					,   -1			):  # printing spaces
               print(""" """					,   end=""""""			)






def 							_lowerCAmelCase (  _a   :					List[Any]			)	->			Optional[int]:
     if n <= 0:
          print("""       ...       ....        nothing printing :("""			)
          return
     floyd(_a			)  # upper half
     reverse_floyd(_a			)  # lower half


if __name__ == "__main__":
      print(r"""| /\ | |- |  |-  |--| |\  /| |-""")
      print(r"""|/  \| |- |_ |_  |__| | \/ | |_""")
      UpperCAmelCase_					:   Optional[Any] 							=						1
      while K:
            UpperCAmelCase_					:   Dict 							=						int(input("""enter the number and , and see the magic : """))
            print()
            pretty_print(user_number)
            UpperCAmelCase_					:   Tuple 							=						int(input("""press 0 to exit... and 1 to continue..."""))

      print("""Good Bye...""")







from collections import namedtuple

UpperCAmelCase_					:   Union[str, Any] 							=						namedtuple("""from_to""", """from_ to""")

UpperCAmelCase_					:   int 							=						{
    """cubicmeter""": from_to(1, 1),
    """litre""": from_to(0.0_01, 10_00),
    """kilolitre""": from_to(1, 1),
    """gallon""": from_to(0.0_04_54, 2_64.1_72),
    """cubicyard""": from_to(0.7_64_55, 1.3_07_95),
    """cubicfoot""": from_to(0.0_28, 35.31_47),
    """cup""": from_to(0.0_00_23_65_88, 42_26.75),
}






def 							_lowerCAmelCase (  _a   :					float					,   _a   :					str					,   _a   :					str			)	->			float:
     if from_type not in METRIC_CONVERSION:
          raise ValueError(
              F'Invalid \'from_type\' value: {from_type!r}  Supported values are:\n'
              + """, """.join(_a			)			)
     if to_type not in METRIC_CONVERSION:
          raise ValueError(
              F'Invalid \'to_type\' value: {to_type!r}.  Supported values are:\n'
              + """, """.join(_a			)			)
     return value * METRIC_CONVERSION[from_type].from_ * METRIC_CONVERSION[to_type].to


if __name__ == "__main__":
      import doctest

      doctest.testmod()
