SHARE
TWEET

Untitled

a guest May 21st, 2019 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class user:
  2.     first_name = "shweta"
  3.     last_name = "ara"
  4.  
  5.    # def (first_name, ):
  6.  
  7.  
  8. # user1 = user("Pankaj", "Arora")
  9. user1 = user()
  10. user1.first_name = "Pankaj"
  11. user1.last_name = "Arora"
  12. print(user1.first_name, user1.last_name)
  13.  
  14.  
  15. user2 = user()
  16. user2.first_name = "Hello"
  17. user2.last_name = "World"
  18. print(user2.first_name, user2.last_name)
  19.  
  20. user3 = user()
  21. user3.first_name = "too"
  22. user3.last_name = "three"
  23. print(user1.first_name, user2.last_name)
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