Guest User

Untitled

a guest
Nov 11th, 2018
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.52 KB | None | 0 0
  1. class simpleclass (object):
  2. def getinput (self):
  3. x = input("input value for x: ")
  4. y = input("input value for y: ")
  5. def calculate (self, z):
  6. print x+y+z
  7.  
  8. class simpleclass(object):
  9. def __init__(self):
  10. self.x = None
  11. self.y = None
  12.  
  13. def getinput (self):
  14. self.x = input("input value for x: ")
  15. self.y = input("input value for y: ")
  16.  
  17. def calculate (self, z):
  18. print self.x+self.y+z
  19.  
  20. class simpleclass (object):
  21. def getinput (self):
  22. self.x = input("input value for x: ")
  23. self.y = input("input value for y: ")
  24. def calculate (self, z):
  25. print self.x+self.y+z
  26.  
  27. class Example(object):
  28. def getinput(self):
  29. self.x = input("input value for x: ")
  30. def calculate(self, z):
  31. print self.x + z
  32.  
  33. class simpleclass (object):
  34. def getinput (self):
  35. self.x = raw_input("input value for x: ")
  36. self.y = raw_input("input value for y: ")
  37. def calculate (self, z):
  38. print int(self.x)+int(self.y)+z
  39.  
  40. class myClass(object):
  41.  
  42. def __init__(self):
  43.  
  44. def helper(self, jsonInputFile):
  45. values = jsonInputFile['values']
  46. ip = values['ip']
  47. username = values['user']
  48. password = values['password']
  49. return values, ip, username, password
  50.  
  51. def checkHostname(self, jsonInputFile):
  52. values, ip, username, password = self.helper
  53. print values
  54. print '---------'
  55. print ip
  56. print username
  57. print password
Add Comment
Please, Sign In to add comment