title: Python Program Find Perimeter Circumference Square Rectangle 1
signature: function pythonProgramFindPerimeterCircumferenceSquareRectangle1(l: number, w: number): number {
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();
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 ) );
  }