





import math


def     SCREAMING_SNAKE_CASE			(      lowerCAmelCase    ,       lowerCAmelCase					):

       if initial_intensity < 0:
              raise ValueError('''The value of intensity cannot be negative'''					)
              # handling of negative values of initial intensity
       if angle < 0 or angle > 360:
              raise ValueError('''In Malus Law, the angle is in the range 0-360 degrees'''					)
              # handling of values out of allowed range
       return initial_intensity * (math.cos(math.radians(lowerCAmelCase					)					) ** 2)


if __name__ == "__main__":
       import doctest

       doctest.testmod(name="""malus_law""")













from math import factorial


def     SCREAMING_SNAKE_CASE			(      lowerCAmelCase = 20					):
       _UpperCamelCase              =						2 * n  # middle entry of odd rows starting at row 3 is the solution for n = 1,
       # 2, 3,...
       _UpperCamelCase              =						n // 2

       return int(factorial(lowerCAmelCase					) / (factorial(lowerCAmelCase					) * factorial(n - k					))					)


if __name__ == "__main__":
       import sys

       if len(sys.argv) == 1:
              print(solution(20))
       else:
              try:
                     lowercase    : Dict    	=  int(sys.argv[1])
                     print(solution(n))
              except ValueError:
                     print("""Invalid entry - please enter a number.""")






