└── square /square: -------------------------------------------------------------------------------- 1 | # Python program to calculate the square of a given number 2 | 3 | def square(num): 4 | # Calculate the square of the input number 5 | return num * num 6 | 7 | # Test the function with a sample number 8 | print("The square of 5 is:", square(5)) 9 | --------------------------------------------------------------------------------