Advertisement
avisrivastava254084

Untitled

Sep 22nd, 2019
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.43 KB | None | 0 0
  1. class Aviral:
  2.     def go_to_newyork(self):
  3.         ob = Gauri()
  4.         if ob.available_in_new_york:
  5.             return True
  6.         return False
  7.  
  8. class Gauri:
  9.     def gauri_in_new_york(self):
  10.         value =  "something" # pull from db
  11.         return value
  12.     def available_in_new_york(self):
  13.         if self.gauri_in_new_york():
  14.             return True
  15.         return False
  16.  
  17. avi = Aviral()
  18. print(avi.go_to_newyork())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement