title: Python Program Find Perimeter Circumference Square Rectangle 1
signature: function pythonProgramFindPerimeterCircumferenceSquareRectangle1(l: number, w: number): number {
source_py: def python_program_find_perimeter_circumference_square_rectangle_1(l, w):
      return (2 * (l + w))
source_cpp: int python_program_find_perimeter_circumference_square_rectangle_1(int l, int w) {
    return ( 2 * ( l + w ) );
  }
question_info.test_list: [{"idx": 0, "outputs": 194, "inputs": {"l": 58, "w": 39}}, {"idx": 1, "outputs": 172, "inputs": {"l": 37, "w": 49}}, {"idx": 2, "outputs": 216, "inputs": {"l": 56, "w": 52}}, {"idx": 3, "outputs": 130, "inputs": {"l": 22, "w": 43}}, {"idx": 4, "outputs": 178, "inputs": {"l": 77, "w": 12}}, {"idx": 5, "outputs": 130, "inputs": {"l": 34, "w": 31}}, {"idx": 6, "outputs": 256, "inputs": {"l": 74, "w": 54}}, {"idx": 7, "outputs": 178, "inputs": {"l": 37, "w": 52}}, {"idx": 8, "outputs": 116, "inputs": {"l": 21, "w": 37}}, {"idx": 9, "outputs": 210, "inputs": {"l": 75, "w": 30}}]
question_info.entry_cls_name: Solution
question_info.test_code: 
  
  // SOLUTION CODE
  // ============================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE 
  // ============================================
  function convertToString(value: any): string{
      return JSON.stringify(value, function (key, val) {
          if (val instanceof Set) {
              return Array.from(val);
          } return val;});
  }
  
  function validateSolution(actual: number, expected: number): boolean {
      return convertToString(actual) === convertToString(expected);
  }
  
  function driver(l: number, w: number, expected:number): string {
      try{
          if (validateSolution(PLACEHOLDER_FN_NAME(l, w),expected)){
              return "PASSED";
          }
          return "FAILED";
      } catch (error) {
        return error.name;
      }
      
  }
      
  function main(){
    let result = '';
    result = driver(58, 39, 194);
    console.log(`TEST-0...${result}`);
  
    result = driver(37, 49, 172);
    console.log(`TEST-1...${result}`);
  
    result = driver(56, 52, 216);
    console.log(`TEST-2...${result}`);
  
    result = driver(22, 43, 130);
    console.log(`TEST-3...${result}`);
  
    result = driver(77, 12, 178);
    console.log(`TEST-4...${result}`);
  
    result = driver(34, 31, 130);
    console.log(`TEST-5...${result}`);
  
    result = driver(74, 54, 256);
    console.log(`TEST-6...${result}`);
  
    result = driver(37, 52, 178);
    console.log(`TEST-7...${result}`);
  
    result = driver(21, 37, 116);
    console.log(`TEST-8...${result}`);
  
    result = driver(75, 30, 210);
    console.log(`TEST-9...${result}`);
  
  };
  
  main();
question_info.extension: ts
question_info.entry_fn_name: pythonProgramFindPerimeterCircumferenceSquareRectangle1
question_info.test_case_ids: 0 1 2 3 4 5 6 7 8 9
question_info.commands: tsc --target es2020 --lib es5,dom,es2015,es2020 __FILENAME__
question_info.commands: node __FILENAME__.js