user43908
0
Q:

declaring function in python

def test_function(argument1,argument2,argument3) :
  # Do something with the code, and the arguments.
  print(argument1)
  print(argument2)
  print(argument3)
  
# Calling the function.

test_function('Hello','World','!')

# Output
'''
Hello
World
!
'''
11
def functionName(variable):
  //function content
7
#Functions
def string():
  print('This is a function')
  
  print(string())
0

  def my_function():
  print("Hello from a function")


  my_function() 
0

New to Communities?

Join the community