Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

function in python

#A function is a block of code which only runs when it is called.
#You can pass data, known as parameters, into a function.
#following is a simple function
def exmple_of_function():
  print("Hello from a function")

example_of_function()
 
PREVIOUS NEXT
Tagged: #function #python
ADD COMMENT
Topic
Name
1+2 =