Well what I really want is make a class, that when I call it, makes an instance of class Client,
w the name the user inputs w the keyboard like
x=Raw_input("En ter teh name")
>> Bill
then program makes
Bill = Cliente("Bill")
and adds the Client instance name to a list, so I can remember or lsit all theclients
User Profile
Collapse
-
python class problem
I have a problem w python class, I come form java and its so diferent, lets show problem
...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
No activity results to display
Show More
Leave a comment: