Length of rope tied around three equal circles touching each other | Python3 code to find the length of rope ; Function to find the length of rope ; Driver code
PI = 3.14159265 NEW_LINE def length_rope ( r ) : NEW_LINE INDENT return ( ( 2 * PI * r ) + 6 * r ) NEW_LINE DEDENT r = 7 NEW_LINE print ( length_rope ( r ) ) NEW_LINE