Advertisement
Guest User

Untitled

a guest
May 29th, 2015
248
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. # i'm using python version 3.4this code is not working
  2. def whatsup(x):
  3. return("My name is" +x)
  4. print whatsup("nimesh")
  5.  
  6. #but instead this code is working.
  7. def whatsup(x):
  8. return("My name is" +x)
  9. var=whatsup("Nimesh")
  10. print(whatsup)
  11. #what is the difference in between in these two codes?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement