Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

function used in python

def hello():
  name = str(input("Enter your name: "))
  if name:
    print ("Hello " + str(name))
  else:
    print("Hello World") 
  return 
  
hello()
Source by www.datacamp.com #
 
PREVIOUS NEXT
Tagged: #function #python
ADD COMMENT
Topic
Name
8+6 =