daily pastebin goal
50%
SHARE
TWEET

Untitled

a guest May 17th, 2018 152 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. '''' this program  is about taking user input
  2. as name and wish hello follwed by his name'''
  3.  
  4. def get_user_name():
  5.     name = input("Enter your name")
  6.     return name    # here we r returning the value
  7.  
  8. def say_hello(msg):
  9.     greet = "HELLO"
  10.     print (greet,msg)
  11.  
  12. def main(): # we are calling on function in another function
  13.     user = get_user_name()
  14.     say_hello(user)
  15.  
  16. main()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top