I have a problem w python class, I come form java and its so diferent, lets show problem
What python prints to me is
Name of the client
# lets say we input Jhon
Jhon
<__main__.Clien te instance at 0x01EEFF58>
What the hell its <__main__.Clien te instance at 0x01EEFF58> ?? I dont undestand why puts that value and not Jhon.
Need help w this please
Code:
class Client: #define the class
def __init__(self,name):
self.name_client=name
if __name__=="__main__": #starting point
coco = raw_input("Name of the client")
coco = Client(coco)
print coco.name_client
print coco
What python prints to me is
Name of the client
# lets say we input Jhon
Jhon
<__main__.Clien te instance at 0x01EEFF58>
What the hell its <__main__.Clien te instance at 0x01EEFF58> ?? I dont undestand why puts that value and not Jhon.
Need help w this please
Comment