SHARE
TWEET

Untitled

a guest Mar 22nd, 2019 86 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class Employee:
  2.   salary = 25000
  3.   company_name= "ABC"
  4. employee = Employee()
  5. print('salary is:', getattr(employee,"salary"))
  6. print('salary is:', employee.salary)
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