




"""simple docstring"""

def 		_snake_case	(   _snake_case				:   int				)       ->   bool:






      '''simple docstring'''


      return sum(i for i in range(1							,    number // 2 + 1				) if number % i == 0				) == number


if __name__ == "__main__":
       print('''Program to check whether a number is a Perfect number or not...''')
       a							      =     int(input('''Enter number: ''').strip())
       print(F'''{number} is {"" if perfect(number) else "not "}a Perfect Number.''')







"""simple docstring"""

import math






def 		_snake_case	(   _snake_case				:   float							,    _snake_case				:   float				)       ->   float:






      '''simple docstring'''


      if (
          not isinstance(_snake_case							,    (int, float)				)
          or power_factor < -1
          or power_factor > 1
      ):
            raise ValueError('power_factor must be a valid float value between -1 and 1.'				)
      return apparent_power * power_factor






def 		_snake_case	(   _snake_case				:   float							,    _snake_case				:   float				)       ->   float:






      '''simple docstring'''


      if (
          not isinstance(_snake_case							,    (int, float)				)
          or power_factor < -1
          or power_factor > 1
      ):
            raise ValueError('power_factor must be a valid float value between -1 and 1.'				)
      return apparent_power * math.sqrt(1 - power_factor**2				)


if __name__ == "__main__":
       import doctest

       doctest.testmod()

