Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class simpleclass (object):
- def getinput (self):
- x = input("input value for x: ")
- y = input("input value for y: ")
- def calculate (self, z):
- print x+y+z
- class simpleclass(object):
- def __init__(self):
- self.x = None
- self.y = None
- def getinput (self):
- self.x = input("input value for x: ")
- self.y = input("input value for y: ")
- def calculate (self, z):
- print self.x+self.y+z
- class simpleclass (object):
- def getinput (self):
- self.x = input("input value for x: ")
- self.y = input("input value for y: ")
- def calculate (self, z):
- print self.x+self.y+z
- class Example(object):
- def getinput(self):
- self.x = input("input value for x: ")
- def calculate(self, z):
- print self.x + z
- class simpleclass (object):
- def getinput (self):
- self.x = raw_input("input value for x: ")
- self.y = raw_input("input value for y: ")
- def calculate (self, z):
- print int(self.x)+int(self.y)+z
- class myClass(object):
- def __init__(self):
- def helper(self, jsonInputFile):
- values = jsonInputFile['values']
- ip = values['ip']
- username = values['user']
- password = values['password']
- return values, ip, username, password
- def checkHostname(self, jsonInputFile):
- values, ip, username, password = self.helper
- print values
- print '---------'
- print ip
- print username
- print password
Add Comment
Please, Sign In to add comment