Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Multiple Function in python with input method

#Function in python

def identity(age):
    print("You are "+str(age)+" Years old")
identity(input("Type your age: "))

def id(name):
    print("Hello "+name+"."+"You are our valued customer")
    print("Have a nice Day "+name)
id(input("Type your name: "))

# if you want to use the input method to get the user info more
# than one time then you should make two function.
# In one function you can't get the multiple results.if anyone can find
# please add to greeper ans.
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #Multiple #Function #python #input #method
ADD COMMENT
Topic
Name
9+5 =