Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

functions in python

# Functions

""" All the functions are followed by the 'def' keyword in python"""

def Greet(User): # The arguments inside the brackets should be called or the function gives you an error
  print("Hello" + User + "!")
  
# Calling the function

Greet("Shivram")

# Output: 'Hello Shivram !' 
  
Source by softhunt.net #
 
PREVIOUS NEXT
Tagged: #functions #python
ADD COMMENT
Topic
Name
6+3 =